|
|
|
|
|
by array_key_first
259 days ago
|
|
The problem comes in when the complexity is both not optional and not rational. Hooks do not work as real functions. They are magic. Why are they magic? I don't know, they certainly don't need to be. What state do they change? I don't know. Why do they look pure but actually mutate the application states? I don't know. Why is react not reactive? Why is it if I change state the entire website rerenders? I don't know. React has a virtual dom. It knows when I change state because I have to tell it, manually. And then... It doesn't use those. But it's okay, because you can `useMemo`. Why do I have to do that? I don't know. Evidently I don't have to do that, because react has a compiler that does it automatically now. Why can't react just do it? I don't know. Clearly it's possible. And also every other framework does it. |
|