Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So I'm a backend engineering, but have experience with Vue.js and like it.

Why would I want to rethink that and try out Svelte?

Reading about svelte the main advantage seems to be everything building to raw JS making it faster.

Questions:

Is there typescript support? I would assume, but...

Does this end up with smaller bundles/js files?

Any other major advantages?

From some reading syntax seems pretty similar to Vue as well.



1. Yes there is typescript support.

2. Compared to React yes, because Svelte ships no runtime (or at least a very minimal one). There is a curve though, and very large apps (in the hundreds of components) will eventually be overtaken by something like Preact or vue.

3. No runtime means no restrictions on what they include in the framework. They take full advantage of Svelte being a compiler and include things like complex state management in the form of stores, a built-in transition/animation system with support for springs. Also the included syntax is extremely concise, if you're familliar with vue it'll be fairly easy to pick up.


> They take full advantage of Svelte being...

They? Libraries?


The Svelte core team. All of the features I mentioned are included in the framework without the need of external libs.


There is typescript support.


The TS ergonomics still have a long way to go, imo. Typing components is a little bizarre -https://github.com/sveltejs/language-tools/issues/442


Agreed. It's not perfect and can be buggy.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: