5 ms·
Javascript: SvelteJS Using it for some personal projects with Vite and it is a breath of fresh air. I use React for work during the day, but coding in Svelte j
by topnde 4y ago
Javascript: SvelteJS
Using it for some personal projects with Vite and it is a breath of fresh air. I use React for work during the day, but coding in Svelte just brings me joy.
- xeromal 4y agoI really hope SvelteJS takes off!
- d1sxeyes 4y agoIt mostly has. The lead dev has been hired by Vercel, which means I'm sure there's some exciting platform level stuff coming to SvelteKit too (similar to Next.js and React).
- ivanvanderbyl 4y agoI recently migrated a large react app to svelte, it's been a lot of fun. I feel more productive working on svelte code than react.
- gepardi 4y agoReact is really grinding my gears, lately. Do you use something t like Redux with Svelte or is the approach different?
- topnde 4y agoAt the moment there is no external library for state management in Svelte. There is however Svelte context api and stores but I doubt you can make complex apps with that alone same as is very hard to do it with React context api.
- SebastianKra 4y agoJudging from the documentation of custom stores, it would be trivial to integrate Redux https://svelte.dev/tutorial/custom-stores https://svelte.dev/tutorial/custom-stores In fact, their API is so similar to Redux and RXJS that I think you might not even need to write any glue-code. https://redux.js.org/api/store/#subscribelistener https://redux.js.org/api/store/#subscribelistener https://rxjs.dev/guide/observable#subscribing-to-observables https://rxjs.dev/guide/observable#subscribing-to-observables
- kevinak 4y agoIf your state is simple enough you can just use a custom store or a writable store. If it gets hairy you could pick something like xstate or rxjs, they both conform to the store contract that svelte uses so they are pretty much plug and play.
- Sateeshm 4y agoSvelte is just amazing. Just makes sense