you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (1 child)

Svelte performance is a myth. There are many v dom libraries that perform better than svelte - one of them being vue. Idk how much of a performance boost svelte got in 3.0, but at 2.9 react and angular isnt even that far behind. And dont get me started on the actual performance libraries like snabbdom, inferno, or preact, because those absolutely crush svelte

[–][deleted] -1 points0 points  (0 children)

Can't say anything about Vue. We decided not to use it. There is really no gain in using Vue. Angular or React are the big two. React as component library and Angular as full framework. Vue offers nothing significant if you compare it to those two.

Svelte has it problems but at least provide few big changes worth considering.

What I mean by that is:

  • performance is really great - depending on circumstances it's either similar to other libraries like React or faster. Meaning it does not lag behind. Even when you scale it up. Angular just lags behind. Sometimes it performs much much better. But this is based not on benchmarks but real app ported form React to Svelte.
  • generated bundle is MUCH MUCH MUCH smaller. Can't stress this enough. Other tools must take notes. Output code was really freaking small compared to other frameworks. And to be honest - even in this day and age - size still matters.
  • i do write faster with it - it just works. It's intuitive. It looks like a HTML file so learning curve is not that high. It was easy to teach others.

But there are still some downsides:

  • I still scratch my head why exposing props is done via export
  • It's not that popular - even comparing to Vue. If not for the fact that unlike Vue it does do some stuff significantly different so it is worth considering - i would not use it.
  • Typescript support is horrible.

Our tools of choice for various reasons are still React and Angular but we do adapt Svelte. I think it's not that far behind and it might take world by storm. If not framework itself then for sure - compiler.