When should one use shouldComponentUpdate lifecycle hook; in all the React components I’ve written, I have never found its use? Do you ever use it?
I have read somewhere that you could write your own diff algorithm in this hook? How would you do that?
Optimizing React with immutable data and shouldComponetUpdate is quite mature already. Follow these keywords and you will find lots of answers.
j
stuff ;)
I match certain properties vs the last state and only update if something really has changed :)