Can't access nested object properties in a single object from JSON call in REACT
问题 I'm making an Rails API call and return a single JSON object that has a nested User Object and a tag list array. However, I can't access the nested Object. this.props.post.user.name throws: Cannot read property 'name' of undefined. I am confused because when I make the call to PostsIndex in PostsIndex.js and get an array of objects and map through it I can access everything. Is there something I need to do when only dealing with a single object? PostShow.js import React, {Component} from