|
|
|
|
|
by breckenedge
522 days ago
|
|
You’re never telling React “do this”, instead it’s always “change this state” and then hope that it does what you expect it to do, but instead it re-renders 10 components for nonobvious reasons. Sure useMemo can help with this, but, eh, I just wish it worked the first way. And every React-adjacent project either ends up abandoned or subsumed into the beast. |
|
Hooks are a bit of a cancer, they leak absolutely everywhere on top of making it quite difficult to reason about re-renders.