3 ms·
> people don't understand how they should useMemo for derived state, and instead emulate the old way with useEffect/setState The problem is react keeps coming
by mejutoco 3y ago
> people don't understand how they should useMemo for derived state, and instead emulate the old way with useEffect/setState
The problem is react keeps coming up with new leaky abstractions, instead of solid building blocks. Fashion is not a good way to do engineering.
- wryanzimmerman 3y agoSince the beginning, the way to solve derived state is to remove it from state—these patterns are both anti patterns.