Hacker News new | ask | show | jobs
by mejutoco 1058 days 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.

1 comments

Since the beginning, the way to solve derived state is to remove it from state—these patterns are both anti patterns.