-
Notifications
You must be signed in to change notification settings - Fork 50k
Closed
Description
I've been playing around with React 16.6.0 recently and I love the idea of React Memo, but I've been unable to find anything regarding scenarios best suited to implement it. The React docs (https://reactjs.org/docs/react-api.html#reactmemo) don't seem to suggest any implications from just throwing it on all of your functional components. Because it does a shallow comparison to figure out if it needs to re-render, is there ever going to be a situation that negatively impacts performance?
And second question: as long as everything remains pure, is there ever a situation to not wrap a functional component with React Memo?
Thank you.
ersel, stelisevil, muqg, rlesniak, G-Rath and 106 moreryota-murakami, rodamaral, nonoakij, devbyaj, joaopedrodcf and 3 morebrainkim, ryota-murakami, rodamaral, joaopedrodcf and kuus