componentDidMount() not being called when react component is mounted
The issue here is that the render method is crashing, because the following line is generating an error Fix this to not use this.state.obj.allStarships.edges[1].node.name directly, unless you can guarantee that each receiver is defined.