Imho options API is better because before I had learnt Vue, knowing what the code would do was clearer than if you use composition API, which introduces ref and I don't know what does that do.
but you have deal with this which in vue is kinda not the same thing that you would get inside clear JavaScript code
this
I'm ok with dealing with this.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Imho options API is better because before I had learnt Vue, knowing what the code would do was clearer than if you use composition API, which introduces ref and I don't know what does that do.
but you have deal with
this
which in vue is kinda not the same thing that you would get inside clear JavaScript codeI'm ok with dealing with this.