5 ms·
Why? Hooks are completely backwards compatible.
by zwily 7y ago
Why? Hooks are completely backwards compatible.
- pier25 7y agoWhat about books, talks, blog posts, SO answers, etc? Is everyone going to rewrite all React literature with hooks?
- pests 7y agoNo rewriting needed. Hooks are just another way to do what was already possible in a more well-defined way. All the content written is still applicable. Now there is just a new way to do things too. The developers and documentation even advises against rewriting old components with hooks unless you need to.
- pier25 7y ago> All the content written is still applicable. 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.