Hmm, but wrapping a functional component in `React.memo` essentially turns it into a pure component, isn't it? With exactly the same logic, and you can compare props there in exactly the same way.

All logic described here has nothing to do with hooks or class components, all children/parents relationship would behave exactly as described here with class components.

--

--

Frontend architect, coder. Love solving problems, fixing things and writing in-depth tech articles: https://www.developerway.com

Love podcasts or audiobooks? Learn on the go with our new app.

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