I still get answers for Vuejs 1.0, with suggestions to use 'partials' for example, only to find out that there exists no such thing in Vue 2.0.
This would be very bad for developers if they still call it Vue with another version number.
Even if they call it VueThree, VueNext or similar then the problem can be easily mitigated I think.
Being able to find answers quickly is a big win for beginners.
Is everyone going to rewrite all React literature with hooks?
The developers and documentation even advises against rewriting old components with hooks unless you need to.
Technically yes, but what if someone only uses hooks and has never used classes?
And, viceversa, since there is now a lot of people moving to hooks and producing React literature for hooks what if you only have used classes?
So now, to be able to read all the React literature one has to understand both methodologies.
> The developers and documentation even advises against rewriting old components with hooks unless you need to.
It doesn't matter. A big chunk of the JS community is hype-based.
The point is that most of the React literature available today will become obsolete.
Beyond that, hooks are super simple and the complainers are just making a big deal out of nothing. They are just callback functions that you implement outside of a class instead of overloading arbitrary method identifiers like "componentDidUpdate".
You also don't have to use it.
React is losing sight of what made it great when it came out. Do one thing, do it well, and do it the simplest way possible.
I for one loathe using class components now and not being able to share logic compositionally via hooks when I work with them. I feel more productive and I feel like my components are smaller and more focused, and I don’t repeat myself as much. It’s been a net win for me, and I think it’s well worth having two supported APIs that do roughly the same thing.. because despite this, React is still a small and focused library API-wise.