3 ms·
My issue with hooks is the learning curve for novices. Previously, it was always easy to have answers to "how does this work?" questions. Now, hooks give a lot
by indeyets 8y ago
My issue with hooks is the learning curve for novices. Previously, it was always easy to have answers to "how does this work?" questions.
Now, hooks give a lot of powerful ui l magic which lets programmers be super productive from day one, but we have a need for articles like this to describe things. It is not trivial anymore. A bit like rails-vs-sinatra story. React arrived to the magical stage and we already had ember for that. React was nice because there was no important magic.
Ah… who cares? I still gonna use it. It just means I will have to hire more senior devs instead of juniors.
- danabramov 8y agoYour experience might be different but I’ve seen many beginners who struggled with classes pick up Hooks very quickly. A lot of the confusion has to do with unlearning a different mental model. Experienced programmers tend to get more confused by Hooks than beginners. Yes, there are pathological cases like this one. Somebody will put this useInterval on npm and then it won’t be a problem. I’m not convinced it be a big issue for beginners in practice based on my experience showing it to people and seeing them play with it.