React + Redux: Managing State


Redux allows us to manage state within our app. Lets starts by installing redux by using npm:

npm install --save redux
npm install --save-dev babel-plugin-transform-class-properties

In our app folder, lets create a folder called redux and another folder inside redux called modules. Create a js file called users inside modules.

In our users.js file we need to specify:

  • constants (in case we would like to re-use our action types)
  • action creators
  • initial states
  • reducers

Continue reading