News for hackers. Stuff that matters.
Re:The self-fulfilling prophecy of React by ironmagma on Friday September 09, 2022 @06:11AM (#32777439)
There’s a significant difference between having to memoize and having to memoize tons of stuff.

Generally you should only need to memoize a few things, and if you find that your app becomes brittle due to the amount of memoization you’re doing you probably are not handling state in the right way. If you’re using Redux that’s a common reason for this; don’t use Redux (is my advice). And yes, I’ve worked on several large enterprise React apps at successful startups.

There are no comments on this comment yet.