The final mounting lifecycle method is called
When a component renders for the first time,
componentDidMount gets called right after the HTML from
render has finished loading. Look in the code editor for an example of
componentDidMount gets used a lot!
If your React app uses AJAX to fetch initial data from an API, then
componentDidMount is the place to make that AJAX call. More generally,
componentDidMount is also the place to set timers using
If that sounds vague, don't worry. You'll put lifecycle methods into practice in this course's final project, and then more in the next course! Not to mention in the real world...