React LifeCycle method
componentDidUpdate :
It is invoked immediately after the component updating occurs.
In this method, you can put any code inside this which you want to execute once the updating occurs.
This method is not invoked for the initial render.
shouldComponentUpdate :
It is invoked when a component decides any changes/updation to the DOM.
It allows you to control the component's behavior of updating itself.
If this method returns true, the component will update.
Otherwise, the component will skip the updating.
componentWillUpdate :
It is invoked just before the component updating occurs. Here, you can't
change the component state by invoking this.setState() method.
It will not be called, if shouldComponentUpdate() returns false.