O'Reilly logo

React Native Cookbook by Crysfel Villa, Stan Bershadskiy

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

Chapter 5.  Implementing Redux

In this chapter, we will go step by step through the process of adding Redux to our app. We will cover the following recipes:

  • Installing Redux and preparing our project
  • Defining actions
  • Defining reducers
  • Setting up the store
  • Communicating with a Remote API
  • Connecting the store with the views
  • Storing offline content using Redux
  • Showing network connectivity status

Introduction

At some point in our application, we will need a better way to handle the state of our application and sending data across several components, and, overall, a robust architecture to scale our application.

In simple words, Redux is a predictable state container. We can use Redux to handle the global state of our app, which will allow us to send data to ...

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