News for hackers. Stuff that matters.
Re:When does React re-render? Explaining rerenders and how t... by petetnt on Wednesday April 29, 2020 @07:41AM (#23017985)
> Whereas in React, it seems idiomatic to just memoize and throw in shouldComponentUpdate wherever you can as much as you can.

Absolutely not, wrapping everything in shouldComponentUpdates probably leads to worse performance as the comparison checks are more expensive in hot paths than just rendering everything again (same with PureComponents and so on).

There are no comments on this comment yet.