6 ms·
It looks like Vue 3's single file components share quite a lot in common with Svelte. As someone who has mostly only worked with React over the past few years
by mcjiggerlog 6y ago
It looks like Vue 3's single file components share quite a lot in common with Svelte.
As someone who has mostly only worked with React over the past few years - can anyone shed any insight on how they compare? Advantages/disadvantages?
From a cursory look it looks like Svelte's greenfield approach has led to cleaner code, though it might just be my React experience speaking.
- kevmo314 6y agoVue (and React) aren't compilers like Svelte. The real advantage of using a compiler is that more complicated state changes can be instrumented without hacky introspection, which is probably why Svelte feels cleaner. The big tradeoff is that it forces the use of the Svelte compiler. Which doesn't sound all that bad until you want to use something like TypeScript and realize that it's maybe a bit odd that a framework now has a tight grip over what language/tooling is used. It seems like Svelte just recently finished their TS support, but I tried Svelte and while I liked the concept, the overreaching felt like at that rate I'd rather use ReasonML or something because Svelte JS is technically not JS, just looks a lot like it.
- ballenf 6y agoThe svelte creator talks extensively about this on a recent Software Engineering podcast: https://www.se-radio.net/2020/03/episode-402-rich-harris-on-the-svelte-javascript-framework/ https://www.se-radio.net/2020/03/episode-402-rich-harris-on-...
- Can_Not 6y agoCleaner code, maybe if you can ignore that Vue and React have superior support for error handling.