DEV Community

Discussion on: React vs Vue vs Angular vs Svelte

Collapse
 
cwraytech profile image
Christopher Wray • Edited

In the Vue example you are using data components. For the others just plain html. You could have a Vue component with a template of just the h1 tag and no script. It would look more like the svelte example.

Thread Thread
 
hb profile image
Henry Boisdequin

Thread Thread
 
stefanovualto profile image
stefanovualto • Edited

In your vue example, I think that you should expect to be in a .vue file lik le it seems to be in the others (I mean that you have the whole bundling machinery working under the hood). Then something similar would be:

<template>
    <h1>Hello world!</h1>
</template>
Enter fullscreen mode Exit fullscreen mode

Maybe a pro' for vue is that it can be adopted/used progressively without having to rely on building process (which I am assuming are mandatory for react, svelte and maybe angular). What I mean is that your previous example worked, but it wasn't comparable to the others.