O'Reilly logo

React Native By Example by Richard Kho

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing Redux

We'll use npm to install Redux. There are also a couple of dependencies it needs, and we're going to install all of them at once. Make sure you're at the root directory of your project folder, and do the following:

npm install --save redux react-redux redux-thunk 

Here's a brief overview of the three packages we're installing into our project:

  • Redux: This is the library itself.
  • React-Redux: This is a library that provides bindings for React. Redux isn't specifically tied to React, and this library will let us access the Provider component to pass down our props at the parent level with ease.
  • Redux-Thunk: This is middleware that will help us make asynchronous calls with our actions, and is useful because we will be making ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required