DEV Community

Discussion on: How I moved from React to Svelte

Collapse
 
rolanday profile image
Roland Ayala

SvelteKit is a game changer. I've used it, love it, and set it aside. I'll use it (or Qwik, or Solid) once component space further develops and stabilizes (a lot of abandoned SvelteKit libs). Time will solve this problem. Aauth.js is still experimental and an aria compliant, complete, proven component UI library is needed. Also, the choice of sfc/templated style like Svelte v. JSX is very much personal pref -- one is not better than the other, and I for one much prefer JSX style. So, yes, if you hate JSX then you're going to love Svelte. I think a lot of people confuse the ease of development that comes with Svelte for overall ease of use and productivity when considering ecosystem (but I agree it IS easier than React considering only framework). Despite what a lot of ppl like to parrot, React eco is much more than just a bunch of vanilla JS libs wrapped for React. For now, I'm still more productive (and therefore have more fun) developing on React. I use Remix, so maybe that's why (agree w/ other comments re: Nextjs and Vercel, which also oversees SvelteKit).

Collapse
 
kedzior_io profile image
Artur Kedzior

a lot of abandoned SvelteKit libs
Interesting, would you be able to share the source?
The reason is that Svelte is still being shaped and some of the libraries are being abandoned because the functionality is added to Svelte or SvelteKit.

Time will solve this problem
Indeed!

Aauth.js is still experimental
Yes that is something devs need to wait for if they really need to use it. It doesn't affect people like me who simply don't use and will never use JavaScript on the server. Authentication then is not a problem.

Svelte v. JSX is very much personal pref
100% agree.

... a lot of people confuse the ease of development that comes with Svelte for overall ease of use and productivity when considering ecosystem ...

But isn't the ease of use of development improving the productivity?

Easier development translates into faster delivery and bug reduced code.

What I also have seen with a lot of developers is that Svelte brings them joy and joy adds up to productivity.

React eco is much more than just a bunch of vanilla JS libs wrapped for React ...

Of course it is. It is years ahead + backed by a big company and it will take time to grow.

However, for myself and I think for some of us the sacrifice of React's ecosystem for the ease of development is the sacrifice we are willing to make.

Collapse
 
rolanday profile image
Roland Ayala

If you're more productive in Svelte then definitely use it -- I would too, but that hasn't been the case for me, despite very much wanting to get off of React. I'll revisit again in a couple years.

Thread Thread
 
kedzior_io profile image
Artur Kedzior

Yes it feels to me like going back to the roots of pure java script with the same powerful features.