I'm not a big React fanboy but, I'm not sure about Svelte. Blending styles, controllers and presentation into one file feels wrong. Also, I don't know if in Svelte it's possible (or how hard it would be) to implement an app state management with central store(s). I think the comparison would be only fair in a more advanced use case.
Svelte allows you to declare store in a file, and import them into components. If the value of a store changes, all components importing this store are notified and updated.
I'm not a big React fanboy but, I'm not sure about Svelte. Blending styles, controllers and presentation into one file feels wrong. Also, I don't know if in Svelte it's possible (or how hard it would be) to implement an app state management with central store(s). I think the comparison would be only fair in a more advanced use case.
Svelte allows you to declare store in a file, and
import
them into components. If the value of a store changes, all components importing this store are notified and updated.cool, that's what I would expect :)
svelte.dev/tutorial/writable-stores