Why API call is recommended in componentDidMount()
It’s good to have basic knowledge of Event Loop, Component lifecycle methods and Virtual DOM for better understanding of this article.
For an end user the expected behavior is the site load with proper data in first…