News for hackers. Stuff that matters.
Re:When does React re-render? Explaining rerenders and how t... by uryga on Wednesday April 29, 2020 @05:32AM (#23017192)
(i hope i'm not spreading misinfo, i'm not super experienced with React)

it may be that way with regular Components, but afaik Pure components are smarter - the idea of Pure components is that react only rerenders the components when the props change. (or something in a hook, if you're using those). though i guess a Pure component is basically equivalent to what you'd get with memo?

Re:When does React re-render? Explaining rerenders and how t... by miracle2k on Wednesday April 29, 2020 @07:40AM (#23017984)
Yes, PureComponent, React.memo and shouldComponentUpdate are all the same mechanism.