Will React be dethroned by Svelte?
Updated: Aug 20
However, at the end, React overtook Angular. The same was expected of Vue. However the new entry in the market - Svelte, threatens the prospects of Vue replacing React.
What makes Svelte different from React & Vue?
React and Vue both depend heavily on their respective implementations of Virtual DOM. For every change in component state, the UI is calculated by the vdom implementation and changes are made to DOM. However Svelte is different, it behaves more closely to a compiler.
Simply put React and Vue do most of the work in runtime while Svetle does the same in compile time. However like React and Vue, Svelte uses components written in a declarative way.
What makes Svelte better?
Svelte is built with web standards in mind, it does not impose its own standard on developers like React does with JSX. Thus it has a very small learning curve.
The build is optimized by the compiler, resulting in a small build size.
It can be used in existing projects easily.
Less lines of code and great performance.
What holds Svelte back?
Even though Svelte has many advantages, it might not become the first library/framework of choice for a developer starting a new project. Because of the following limitations
No Typescript support
Lack of dev tools
In conclusion, Svelte takes the cake in terms of performance and efficiency. However those alone do not guarantee widespread adoption. For Svelte to dethrone React, developers and software companies should embrace Svelte the same way they did React in its early days.