A better way of using React.memo
PureComponent is a decent approach for performance optimisation as long as it is not prematurely opted in. It’s functional counterpart, memo is used these days with functional components.
Now there could be 2 ways to declare a component as a memoized...
rohanbagchi.hashnode.dev2 min read