Re:Vue RFC: Expose logic-related component options via funct...
by zwily on Thursday June 20, 2019 @06:25PM
(#20238018)
Why? Hooks are completely backwards compatible.
[ Parent
| on HN ]
Re:Vue RFC: Expose logic-related component options via funct...
by pier25 on Thursday June 20, 2019 @06:41PM
(#20238120)
What about books, talks, blog posts, SO answers, etc?
Is everyone going to rewrite all React literature with hooks?
Re:Vue RFC: Expose logic-related component options via funct...
by pests on Thursday June 20, 2019 @08:31PM
(#20238811)
No 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.
Re:Vue RFC: Expose logic-related component options via funct...
by pier25 on Thursday June 20, 2019 @09:07PM
(#20239005)
> 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.