React — When Should Pure Components Be Used?

React.memo / React.PureComponent usage guide

What’s a Pure Component?

Sandbox

Scroll Performance

Profiler For The Rescue!

React profiler screenshot where Main re-renders often
React profiler screenshot where Main re-renders often

Preventing The Heavy Render

Then Why Not Make All React Components Pure?

Optimizations To Help Keeping Components Pure

So, When Should Pure Components in React be Used Indeed?

Thanks :)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store