I'm missing the raw numbers. Increased performance? Faster code execution? By how much?
I'm sure Svelte is faster, but if we're talking 10% improvement it doesn't really matter.
i dont understand, you’d have to do the same in react?
mostly this code injection comes from trusted sources like your CMS. if you’re displaying arbitrary user input then yeah better sanitize it but thats a problem common to all frameworks react included
as for perf i mean the main thing is “are you downloading 100kb just for the framework” whereas many svelte apps come in under 10kb. beyond that agree it doesnt really matter
It's 136.4kB minified (react+react-dom), for a zero app is crazy. The app size that will justify 136.4kB is probably 700kB which is 836.3kB total, is also crazy. So no hello world argument because it sucks (in engineering metrics) at all range of apps.
Additionally...
looks very unsafe to me. (Vue example has the exact same problem)