DEV Community

Discussion on: React: Optimizing Re-Renders with shouldComponentUpdate

Collapse
 
bamartindev profile image
Brett Martin

Nice write up! Something else to consider is extending React.PureComponent in place of React.Component if your optimization is a shallow check of props and state, and you get the shouldComponentUpdate for free!

Check out the docs here: reactjs.org/docs/react-api.html#re...