DEV Community

Discussion on: Why choose React for frontend?

Collapse
 
joshnuss profile image
Joshua Nussbaum

I prefer Svelte, I find it easier to use than React. For example, here's a comparison of React Hooks vs Svelte

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
sroehrl profile image
neoan

I understand the excitement for it! However, it produces white a lot of transpiled code which leads me to believe bigger applications might suffer performance. However, I haven't built anything bigger with it yet so take this with a grain of salt.

Thread Thread
 
Sloan, the sloth mascot
Comment deleted
 
sroehrl profile image
neoan

Well, that didn't sound right considering the approach svelte takes, so I googled to see if anybody did an inflection analysis. You are of course right when it comes to smaller applications: since the "workload" is mostly done while transpiling most of our every-day projects will be WAAAY smaller with svelte. However, looking at the way it compartmentalizes code, it's clear that this advantage will eventually turn.
The nicest study on this I found is located at github.com/halfnelson/svelte-it-wi...

The good news is: the inflection point to React seems to be at beyond 130kb of source code, which is high enough for nearly every project. So over all, you are right in saying that there aren't any concerns.

There is something to be said about the way you look at this, though: neither the benchmarks you provided nor the pure bundle size comparison are suitable for performance evaluations. What you are actually interested in is what happens when you scale your application in order to evaluate whether or not a technology is suitable for industry-sized applications, as they tend to grow more or less indefinitely in the case of product success.