React Hooks for Vue developers
Michael wrote a good tutorial on how to use React Hooks in Vue.js, and how to structure your code in a clean and consistent way.
If you have looked at react a long time ago and got scared away by some of its verbosity (I mean you ComponentDidMount, ComponentWillReceiveProps, getDerivedStateFromProps etc.), have a look again. Hooks take functional components to the next level. And it comes with all the benefits you could imagine, no classes, no this, no boilerplate. Turns out I am not alone on this, as some of these points are also mentioned in the official docs talking about the motivation behind hooks.
Link:
This post is submitted by our members. Submit a new post.
Topics: Javascript VueJS VueJS 2
Tags: Tutorials