You should populate data with AJAX calls in the
componentDidMount lifecycle method. This is so you can use
setState to update your component when the data is retrieved.
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.