In all my years in this vital industry, I have to say I cannot believe of how much code I duplicated because I did not stop to use the composite API from Vue.js.
Hopefully that has changed.
In all my years in this vital industry, I have to say I cannot believe of how much code I duplicated because I did not stop to use the composite API from Vue.js.
Hopefully that has changed.
Composite API (Vue.js) is actually pretty cool, just the fact that I have to stop using `this` and variables with $ everywhere is awesome.
But the killer feature is actually to organize and reuse code.
Good that the developers decided to keep Options and Composite API. If I had to migrate from Vue.js 2 to Vue.js 3 only with Composite API I would not.
I have to say, sharing code with Composite API is much more elegant.
And it still works with the Options API.