News for hackers. Stuff that matters.
Re:Vue RFC: Expose logic-related component options via funct... by tuesdayrain on Thursday June 20, 2019 @06:12PM (#20237917)
I switched from React to Vue because I didn't like the direction they were going with hooks. Now it looks like Vue is heavily borrowing from the same approach. Slightly upset about that but I guess I'll have to learn the new style. Maybe it will be better in the long run.
Re:Vue RFC: Expose logic-related component options via funct... by pier25 on Thursday June 20, 2019 @06:15PM (#20237937)
You could look into other options like Svelte.
Re:Vue RFC: Expose logic-related component options via funct... by mdanger007 on Thursday June 20, 2019 @06:21PM (#20237991)
Svelte is really nice because it makes the mundane easy (some say magic) and the tough stuff like reactivity and animation manageable.
Re:Vue RFC: Expose logic-related component options via funct... by NewsAware on Thursday June 20, 2019 @06:30PM (#20238063)
Or just go with hooks. Obviously there are quite a few pros and cons but for us the reduction in boilerplate led to a net increase in cognitive understandability of our code base so to say.
Re:Vue RFC: Expose logic-related component options via funct... by davnicwil on Thursday June 20, 2019 @06:38PM (#20238093)
> the direction they were going with hooks

I'd be really interested in your thoughts on this. What about hooks don't you like so much that it made you abandon React?

Re:Vue RFC: Expose logic-related component options via funct... by boatman_ on Thursday June 20, 2019 @09:16PM (#20239045)
Hooks brought me back to react. Everyone is different I guess.