4 ms·
Hooks future depends on its objective: a replacement or an alternative? I guess even the React team itself doesn't have an answer for this, that is why they ar
by tanilama 8y ago
Hooks future depends on its objective: a replacement or an alternative?
I guess even the React team itself doesn't have an answer for this, that is why they are rolling out Hooks relatively cautiously, not forcing it down to the community like what angular does with its 1.x -> 2.0 push, which I consider as a complete disaster that eventually costed it the victory of last framework revolution.
My bet will be on the later. Hooks will become a preference, and there will be a mix of hooks/classes in real world application, since rewriting using Hooks only isn't what most people see will bring immediate benefits. The React community at large from my observation doesn't have a huge issue going forward with the current API, despite being grumpy from time to time.