DEV Community

Discussion on: How I moved from React to Svelte

Collapse
 
webjose profile image
José Pablo Ramírez Vargas

I'm in the investigative part of my transition. I need micro-frontends with single-spa and I want Vite.

Svelte is so simple in comparison, it's just not fair. I think people will soon realize that Svelte is the uncrowned king. Is not a matter of IF, it's a matter of WHEN.

What I disagree with and I'm vocal about it, is statements like this:

While both have their strengths and use cases...

I keep daring people to tell me which use cases can React handle that Svelte cannot. I feel that authors are just being political about it.

Collapse
 
kedzior_io profile image
Artur Kedzior

Svelte is so simple in comparison, it's just not fair. I think people will soon realize that Svelte is the uncrowned king. Is not a matter of IF, it's a matter of WHEN.

Yes!

I keep daring people to tell me which use cases can React handle that Svelte cannot.

One of my big use cases doesn't actually relate to what one technically can do and can't but to the fact that React has a component for nearly everything you would ever need while in Svelte you need to do it yourself. For some projects it is a deal breaker. Another big advantage of React is that teams can do both React Native and React Js. That's one of the reasons we haven't switched yet on one of my projects. SvelteNative needs to be a thing for Svelte to be adopted by a lot of companies.

Collapse
 
zhamdi profile image
Zied Hamdi

There's not much code you can share between react js and react native anyway I'd say. So it makes sense to write the web in svelte and the mobile in Flutter, add once you're free from react on the web, you can afford complete liberty

Thread Thread
 
kedzior_io profile image
Artur Kedzior

In my case it's not much of a code share but team's skills. In one of my projects the guys doing React Native are also doing FE for an internal Dashboard and they swing React in both worlds like champs.

Thread Thread
 
zhamdi profile image
Zied Hamdi

Good point, optimizations and tricky stuff is the same on react native and web

Collapse
 
webjose profile image
José Pablo Ramírez Vargas

Ah, I see. Well, with Svelte cutting down so much in terms of code, I bet it frees up time to play around and make components. 😄

So the phrase is actually a euphemism for "not a big community". Time will most likely take care of that one. I must say, though, that I have seen some VERY impressive things made with Svelte. There's a Doom game out, and the REPL on steroids that can be used to create SvelteKit projects and who knows what else. There are some very capable people out there interested in creating and sharing.

Thread Thread
 
kedzior_io profile image
Artur Kedzior

Ah, I see. Well, with Svelte cutting down so much in terms of code, I bet it frees up time to play around and make components.

Hahah nice one. If that's a simple component that hey, why not and it's fun. When we are talking about something more complex components we are talking about weeks of work.

Of course the community will grow and I'm all for that and I hope my posts will contribute to it. Yes there are impressive things donde in Svelte but at the end of the day the decision takers in the companies will look at tech that has all perks.

There's a Doom game out

It should be added here: reddit.com/r/itrunsdoom/
:-)

Thread Thread
 
webjose profile image
José Pablo Ramírez Vargas

Wish me luck, I'll present Svelte to Intel the 2nd week of September. I will be showcasing a simple timer and how it was more complex to make it in React vs Svelte. I animated the Svelte one to add flare to it.

Thread Thread
 
kedzior_io profile image
Artur Kedzior

Hahah nice and good luck!

To make them go for it 100% just tell them that the guys at AMD use it for Ryzen related stuff :-)