DEV Community

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

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.