Perbedaan antara komponen W memang memperbarui dan memasang

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