1componentDidMount() : invoked immediately after a component is mounted (inserted into the DOM tree)
2componentDidUpdate(prevProps, prevState, snapshot) : is invoked immediately after updating occurs.
3This method is not called for the initial render.