Comparing Svelte and React

Comparing Svelte and React

Svelte is gaining a lot of popularity these days and people are wondering if this is something that has the potential to replace react. Svelte Vs React question is one of the most popular questions in frontend engineering these days.

My single-word answer to this question is NO.

React is far too mature, robust and widespread to die easily unless some fundamental shift in Javascript and browsers comes to pass.

jQuery was once the de-facto queen of the javascript libraries. With time, the new JS specifications made it worthless. I do not see such a shift coming to React. In fact, any new changes to JS/HTML spec are likely going to complement React rather than replace it.

Svelte however must not be written off as "just another framework". It has immense potential to be a powerful framework that exists side by side with React.

I expect Svelte to be the primary choice for those building desktop-like applications for the web where performance becomes paramount. I do not expect it to replace React where performance is of primary importance.

Note: While Svelte is about performance-oriented web apps, it does not mean React is bloated or incapable of high-performance applications. It most certainly can.

I expect Svelte and React to be both popular but React is the default choice.