Which lifecycle event is invoked before rendering and when new props or state are being received?
Answers
Answered by
1
shouldComponentUpdate() is invoked before rendering when new props or state are being received. Defaults to true . This method is not called for the initial render or when forceUpdate() is used.
Similar questions