I'm working with React and actual live data from a database for the first time. I'm using fetch as outlined in this article and that's working fine. I've been able to get data received from a php file to print into react.
I've run now into trouble because React kind of stopped making sense. Some variables will work just fine, while others that use the exact same data will not.
For example:
Given this array of objects

I can just do this to assign it to a variable:
var posts = this.props.postData.map(function(entry, index){
return <li>{entry.post_title}</li>;
})
And it will output just fine to this:
However, in the same function as the above, if I wanted to assign a specific string from the object to a variable, suddenly react will tell me the object is undefined.
var singlepost = <span>{this.props.postData[0].post_content}</span>
var singlepost = this.props.postData[0].post_content;
and even:
var singlepost = this.props.postData[0];
return (
<div>{singlepost.post_content}</div>
)
No matter what I try React keeps telling me it's undefined, even though if I console.log the object right before using it its content will show in the console just fine. As soon as I specify the string I want, I will get an undefined error.
Is there a specific of doing this?

