What is componentDidUpdate method?
Mostly it is used to update the DOM in response to prop or state changes. This will not fire if shouldComponentUpdate() returns false.
shouldComponentUpdate()
false