If you need to update anythings after state update then this is good place. So it works similarly to the old componentDidMount and componentDidUpdat…