/redux-tutorial

Learn how to use redux step by step

Primary LanguageJavaScript

redux-tutorial

This repository contains a step by step tutorial to get a grasp about flux and most particularly about Redux.

This is still a WIP.

The official and very exhaustive Redux documentation is available here and should be your number One source of truth regarding Redux. The present tutorial only will offer you an introduction to flux concepts through Redux use but for further or more detailled infos, please refer to the Redux documentation.

Prerequisites

It is required for you to know a bit of ES6 and ES7 (Object Spread) to understand correctly some of the examples given in this repo. Be also aware that this tutorial targets redux 1.0.0 and react-redux 0.2.x (react-redux 0.8.x is the current master version and this tutorial will be updated accordingly soon).

Clone the repository

git clone https://github.com/happypoulp/redux-tutorial.git

Move into repository

cd redux-tutorial

Install dependencies

npm install

Browse the tutorial

This tutorial is split into js file to be read as is and they are numbered in the preferred order of browsing.

Start with the first tutorial: Introduction

Run an example

Being real js files, each example can be run to verify that it works as intended or to do your own experiments:

npm run example 01_simple-action-creator.js

Enjoy!