loading...

Discussion on: Svelte for Sites, React for Apps

Collapse
unicorns profile image
Unicorns

I think you have it reversed, it's not just about shipping less code, it's about shipping performant code. Web apps require more re-renders than sites, the more re-renders you have the more performance cost React increases.

On a side note, it's troubling to see how "write once, ship anywhere" development is increasing non-performant apps on mobile & desktop. Majority of them are electron or built on something similar.

Collapse
swyx profile image
shawn swyx wang πŸ‡ΈπŸ‡¬ Author

react prioritizes correctness over performance. performance is not everything.

Collapse
unicorns profile image
Unicorns

So do every other popular framework, not sure what your point is there. Performance is the major factor for apps & websites.

Not hating on React, Vue or Angular but it's time to move on or change the internals. They have popularized component based development. Backbone, underscore and friends did it before them but when React & others came into existence, everyone noticed the benefits and made the switch. Now, we have better frameworks & tools than React, Vue, Angular, etc so it's time to move on and adapt those. In future, if something better than svelte comes up then as a web community we should promote them.

Faster, performant & accessible web is what we should push towards.