Svelte vs Vue #15208
Replies: 2 comments 5 replies
-
I will never understand why any programmer who should be familiar with if (condition) {
....
} else {
....
} would prefer |
Beta Was this translation helpful? Give feedback.
-
In my opinion, Svelte (and React) use event handling in a way that better reflects how things work in practice—by requiring you to pass a function. Vue's inline approach can give the false impression that something is written incorrectly, and it may confuse beginners about what exactly should be provided as the event handler. |
Beta Was this translation helpful? Give feedback.
-
Personally I prefer Svelte in term of syntax. For example:
.value
to access the reactivie value inside thescript
tag.template
tagscoped
keyword forstyle
tag$derived()
instead ofcomputed(() => )
$state
But there are also pros of Vue I think is better:
And also:
The above is my experience of development. For performance, I prefer Svelte too.
But one more thing, Often developers of Vue will use Nuxt too. Where I find the auto import really saves me ton of times!
For my past companies, I have recommend them to use Svelte because its performance is great and save time during development.
But they always said Svelte is still not mature and not seeing big company using it and thus not confident.
My question is, to be honest. Sometimes I also struglling choosing between Svelte and Vue when starting a new project.
Could you provide a solid comparison between Svelte and Vue, along with the reasons behind their differences, to help me and other developers who are struggling to choose between them?
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions