Svelte is pretty much JavaScript. Which samples work in JavaScript but not Svelte?
I would guess that 90%+ of all React written goes through a compile/transpile step in the development process which makes the difference between writing React apps and Svelte apps negligible.
I actually went back to React after using Svelte but I think the compile step makes more sense since you're not delivering the library to the end user.
Mainly the ecosystem and prospect of jobs. There's 0 svelte jobs where I live but lots of React ones. Since Svelte is easy to pick up I'll happily switch back if the opportunity ever arises.
I would guess that 90%+ of all React written goes through a compile/transpile step in the development process which makes the difference between writing React apps and Svelte apps negligible.
I actually went back to React after using Svelte but I think the compile step makes more sense since you're not delivering the library to the end user.