4 ms·
Check out Svelte. Essentially reactivity baked into the compiler so you don't have to use observables everywhere.
by sansnomme 7y ago
Check out Svelte. Essentially reactivity baked into the compiler so you don't have to use observables everywhere.
- leetrout 7y agoSecond time it’s been mentioned in as many days. Are you actively using it?
- sansnomme 7y agoYes it is pretty straightforward though the project is still growing and suffering from the usual growing pains. Think docs that has plenty of room for improvement, insufficient example projects and components. On the up side the team responds quickly, the concepts are ridiculously simple compared to Redux and there's a burgeoning community around it. E.g. https://sveltematerialui.com/ https://sveltematerialui.com/ The Next.js equivalent for SSR is Sapper: https://sapper.svelte.dev/ https://sapper.svelte.dev/ Note the creator of Svelte is the same guy who created the Rollup bundler so pretty much everything comes with dual configs for both Rollup and Webpack.
- Kiro 7y agoOne of the main reasons I'm using Redux is because of the global store. If I understand the docs correctly this is how you do it in Svelte: https://svelte.dev/examples#writable-stores https://svelte.dev/examples#writable-stores What's up with that? A strange semi-singleton where you need to use writable(0)? Also strange that subscribe return unsubscribe. Doesn't seem very intuitive.