DEV Community

Discussion on: SVELTE. Will it ever have a chance against React.js?

Collapse
 
giorgosk profile image
Giorgos Kontopoulos 👀 • Edited

There is an inflection point after which svelte might become bigger in size than react. github.com/halfnelson/svelte-it-wi... The author of this study says that the inflection point is around 120KB which is theoretically very difficult to pass. In simple terms the reason this happens is that react ships a big runtime but small individual components meanwhile svelte compiles to bigger js component code but virtually no runtime. So in theory the more components you put on a page the faster the bundle size grows for svelte but react bundle size does not grow as fast.