Passing asynchronously acquired data to child props
问题 I am making an app that gets an array of news items from a remote source and displays them on a page. I have the endpoint, and can make a successful call, proven by console logs, using $.getJSON() . I placed this call into the parent component, because child components will need to use the data. However, when I pass this data down to a child component, the console error appears: Uncaught TypeError: Cannot read property 'headline' of undefined This is because React is trying to render the