I once spent six hours debugging a React app that kept rendering undefined in place of a user’s name. I checked the API, the state, the reducers, the lifecycle methods — everything. Finally, I found it.
—
The API returned "name": null .