The beginning of the year is generally light here in New Zealand. You know… the time everybody gets back to work :)
So I got the chance to explore Redux… and I learnt A LOT! What a really cool way to manage the state of your React app.
Get started
First if like me you are not used to Flux and even less to Redux, you should check these cool tutorial videos made by the creator of Redux. It will give you some really useful basics and help you to understand how Redux works.
Starter kit
Then, it’s time to get started and write some code.
And here come the examples from Redux git repo. Clearly, they are really amazing and you can totally use them as a base for your first small project in Redux.
Springtunes
That’s what I did and I ended up creating Springtunes. A small web app that allows you to control your spotify client from any web browser.
It’s running an express server on port 3000 and then through the UI, triggers actions to the actual Spotify client.
All the client side is made using React and Redux. Don’t hesitate to have a look at the source code but it’s mostly based on the ‘async’ example from Redux repo.
Afterwards
That’s the crazy thing… Everything is so clear and well explained in the videos/examples/documentation that you don’t need anything else to get started and nail Redux.
Enjoy Redux, it looks complex at the beginning but it’s a lot of fun at the end :)