2 ms·
I just ran through the tutorial, and I really liked the $-for-reactivity part. That's clever and good. But then they introduced a whole new language for loops
by jfengel 6y ago
I just ran through the tutorial, and I really liked the $-for-reactivity part. That's clever and good.
But then they introduced a whole new language for loops and control structures, and I really prefer JSX for that. JSX nails a sweet spot of bog-standard Javascript/Typescript, with enough HTML syntactic sugar to very natural web-pagey parts. As long as TS/JS is already in there, I'd rather use it everywhere.
I don't know it well enough to know if that's a necessary feature, or if the language will evolve to something closer to my sensibilities. I will probably give it a try in the future, especially if I want something more performance focused. (The virtual DOM overhead is real and the separate state mechanism is far less elegant than Svelte's solution.)
- uxcolumbo 6y agoSvelte now supports TS https://svelte.dev/blog/svelte-and-typescript https://svelte.dev/blog/svelte-and-typescript