News for hackers. Stuff that matters.
Re:Ask HN: Anyone else notice that HN isn’t full of JavaScri... by mejutoco on Saturday July 22, 2023 @05:04AM (#36824639)
> 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.

Re:Ask HN: Anyone else notice that HN isn’t full of JavaScri... by wryanzimmerman on Saturday July 22, 2023 @09:05AM (#36825903)
Since the beginning, the way to solve derived state is to remove it from state—these patterns are both anti patterns.