News for hackers. Stuff that matters.
Re:Why Do React Hooks Rely on Call Order? by WorldMaker on Thursday December 13, 2018 @02:20PM (#18675136)
Recent versions of React have encouraged truly pure props-only functions to wrap them with React.memo(), which also adds the benefit of giving them the equivalent of a shallow-check `shouldComponentUpdate()` avoiding re-renders when the props are the same.

React.memo() is all the more useful of a signal in the Hooks world.

There are no comments on this comment yet.