Redux with Svelte is fun to use. We will play with Redux (Redux Toolkit) and Svelte on this repository. Redux is predictable state management container and we will integrate it with Svelte. This sample project is basically a counter increment/decrement demo that will help you get started and get the idea how to use Redux Toolkit in Svelte (featuring Vite). No distraction guaranteed. Why Redux Toolkit? Relax bro, Redux Toolkit is modern recommended way to use Redux. It's official from Redux team and it's already included with Redux package.
Clone it and run the following commands.
npm run dev
Just look into src/App.svelte
and all code available there. I don't split to smaller files/module just because to easy to read and understand. If you enjoy it then you can split it into modules on seperate files.
src/App.svelte
to make it easy to follow.https://redux-with-svelte.vercel.app
MIT
Maintained by Sony Arianto Kurniawan <sony@sony-ak.com> and contributors.