|
|
|
|
|
by montroser
1358 days ago
|
|
The two frameworks take completely different approaches to solving similar problems, so each comes with huge trade-offs compared with the other. In a sense, the Svelte framework runs at compile-time -- it takes your application source code, and uses its framework to produce a minimal JavaScript bundle that you ship to your end users. In contrast, the React framework runs at run-time -- you ship React along with your application to the end user, and they boot it all up and run it there. So, in terms of benefits, Svelte will be smaller and will likely run faster. As a bonus, it's much easier to learn. For downsides, Svelte can be harder to debug, and the community is smaller. But that said, React is a hot mess with so many ways to do all the things because all the existing ways are terrible and so then people make even more new ways again... |
|