DEV Community

Discussion on: Why a React developer used Svelte for an Arcade

Collapse
 
andrewbaisden profile image
Andrew Baisden

Yet to hear many negatives about Svelte everybody who uses it seems to think its great.

Collapse
 
richkurtzman profile image
Rich Kurtzman

Maybe worth giving it a shot! Thanks for reading and commenting. Cheers.

Collapse
 
andrewbaisden profile image
Andrew Baisden

I remember when it was first released it was not that big back then. But now there is more reason to learn it so yes.

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
andrewbaisden profile image
Andrew Baisden

True its still the new kid on the block and the ecosystems is growing plus there are not many jobs available for it yet. But in terms of codebase people have been saying that the syntax is much easier to write.

Thread Thread
 
richkurtzman profile image
Rich Kurtzman

Great insight!

Collapse
 
erikest profile image
erikest

I'm currently learning and evaluating front end frameworks for my company so we can make a commitment to modernization and attract and retain good front end developers. I'm looking at React, Angular, Vue and Svelte.

From my understanding, I think react needs a package for everything. Because of the virtual DOM, 'normal' JS libs don't work and thus the logic has to be ported/translated through react dom. Svelte in contrast uses the real DOM, so you can import from many/any existing js library and use them. Lots of libs have you call a function with a selector or element as a parameter to use as the root and then inject all of their particulars from there and that works in svelte. You may have to use lifecycle events in the component to perform the setup, where you'd otherwise use a loaded event and the styles might need a little extra hand holding, but it seems relatively straightforward so far.