3 ms·
In case you're feeling alone. I detest hooks and I'm glad I was able to get out of front-end dev before they became wide-spread. I loved react at first with cla
by iandanforth 4y ago
In case you're feeling alone. I detest hooks and I'm glad I was able to get out of front-end dev before they became wide-spread. I loved react at first with class components and its friendly lifecycle. It was designed to be understandable and self-documenting. It was a pleasure to write self-contained components. The move to function components, redux, and hooks stripped all of that away.
I'm glad others have found value in the evolution of react, but it always felt like watching a tragedy from the outside as the newest Abramov idea seeped through the ecosystem.
- wildrhythms 4y agoYou say you detest hooks, but didn't elaborate why. Can you explain more? Is it just a preference for the class-based model of overriding lifecycle methods?
- kybernetikos 4y agoI don't know about the GP, but hooks are fundamentally an attempt to stick a state managing effects system into a language that is designed to use objects to manage state. This gives you something approximating the worst of both worlds - your 'functional' components are not pure, and the effect management system is something you have to deeply understand to use correctly, but it clashes with the rest of the language.