DEV Community

loading...

Discussion on: What you prefer svelte or react?

Collapse
ahferroin7 profile image
Austin S. Hemmelgarn

Personally, I prefer neither, but I guess I'm a bit old fashioned by 'modern' web developer standards (I don't use TypeScript either, and ironically have yet to deal with a bug in my code that would have been caught by TypeScript).

Honestly, my thoughts barring that perspective are:

  • If you're just starting out, use neither. In fact, stay away from full app frameworks completely, and ideally away from stuff like jQuery too. Make sure you actually understand how JavaScript works and how the web API's work first, then start looking at stuff that abstracts that away, and you'll end up a much better developer in the long run. I can't count the number of bugs I've seen in software (not just web apps, but software in general) that got introduced because someone had no idea how the underlying platform actually worked.
  • Beyond that, the choice for me would come down to whether I'm doing something that truly needs React. Svelte is smaller, faster, and generally easier to work with with other frameworks than React is, so I'd pick it in preference to React in almost all cases I could.