News for hackers. Stuff that matters.
Re:Ask HN: Web frameworks – which less popular frameworks ar... by topnde on Friday June 03, 2022 @09:48AM (#31608235)
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.

Re:Ask HN: Web frameworks – which less popular frameworks ar... by ivanvanderbyl on Friday June 03, 2022 @10:01AM (#31608401)
I 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.
Re:Ask HN: Web frameworks – which less popular frameworks ar... by gepardi on Friday June 03, 2022 @05:44PM (#31614051)
React is really grinding my gears, lately.

Do you use something t like Redux with Svelte or is the approach different?

Re:Ask HN: Web frameworks – which less popular frameworks ar... by kevinak on Sunday June 05, 2022 @04:15AM (#31628998)
If 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.
Re:Ask HN: Web frameworks – which less popular frameworks ar... by topnde on Saturday June 04, 2022 @02:53AM (#31617721)
At 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.
Re:Ask HN: Web frameworks – which less popular frameworks ar... by SebastianKra on Saturday June 04, 2022 @05:49AM (#31618613)
Judging from the documentation of custom stores, it would be trivial to integrate Redux

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://rxjs.dev/guide/observable#subscribing-to-observables

Re:Ask HN: Web frameworks – which less popular frameworks ar... by xeromal on Friday June 03, 2022 @09:56AM (#31608343)
I really hope SvelteJS takes off!
Re:Ask HN: Web frameworks – which less popular frameworks ar... by d1sxeyes on Saturday June 04, 2022 @04:55AM (#31618326)
It 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).
Re:Ask HN: Web frameworks – which less popular frameworks ar... by Sateeshm on Saturday June 04, 2022 @02:20AM (#31617562)
Svelte is just amazing. Just makes sense