When a component is being created and added to the DOM tree, is the componentDidMount method called before the render method? code example
Example 1: component did mmount
componentDidMount()
Example 2: component did mmount
componentDidUpdate(prevProps, prevState, snapshot)