DEV Community

Discussion on: Introduction to the VueJs Framework

Collapse
 
xinnks profile image
James Sinkala

Personally, this old syntax would be what I would want to learn when getting introduced to Vue, especially coming from the HTML,JavaScript, CSS background and not knowing how build tools work.
It makes one easily understand Vue from a "home ground" perspective so to speak, given this is the same way one would likely have used JavaScript libraries and plugins (carousels etc) before.

Afterwards, it gets easier to delve into components and understand the SFC syntax.

I do agree with you though and love SFCs to bits. I use them in all my Vue projects because they help implement the modular programming approach and all the benefits associated with that. I was also encouraged to use them since I started using build tools, first with the Vue CLI and now with vite.

But I do still use this syntax on projects where there's a need to add a bit of dynamism into (when too lazy to use vanilla JavaScript 😅) and where using build tools would seem like an overkill.

Just to point out, I will get to components and SFCs on this Vue series.