DEV Community

Sony AK
Sony AK

Posted on • Edited on

Using Redux with Svelte and SvelteKit

Redux with Svelte is fun to use. We will play with Redux (Redux Toolkit) and Svelte this time. 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.

I will give you 2 (two) repositories to play with. Both very simple to understand how Redux works using Svelte or SvelteKit.

Just check it out at these.

https://github.com/sonyarianto/redux-with-svelte
https://github.com/sonyarianto/redux-with-sveltekit
https://svelte.dev/repl/778d2aab2e1e462d9da6f7cc3c7b62bb

Basically both project is a simple counter application (increment and decrement) but this is essential to learn state management with Redux.

No distraction guaranteed, no split files, all code in single file src/App.svelte or src/routes/+page.svelte. No CSS. Just focus on the code.

Enjoy and I hope you like it.

Top comments (5)

Collapse
 
jfbloom22 profile image
Jonathan Flower

wow I cannot believe how simple these examples are. Can't wait to use this in a project.

Collapse
 
sonyarianto profile image
Sony AK

thanks Jonathan :)

Collapse
 
riancintiyo profile image
rionse09

Simple yet insightful, keep up the good work!

Collapse
 
ismadot profile image
ismael

I write this repo based on this post
here

Collapse
 
sonyarianto profile image
Sony AK

wow this is nice, thank you :)