Reader small image

You're reading from  React Native By Example

Product typeBook
Published inApr 2017
Reading LevelIntermediate
PublisherPackt
ISBN-139781786464750
Edition1st Edition
Languages
Right arrow
Author (1)
Richard Kho
Richard Kho
author image
Richard Kho

Richard Kho is a software engineer living in San Francisco. He taught himself how to code in 2014 and has lived a past life as a photographer and cinematographer. He currently works for Capital One and has taught software engineers at Hack Reactor in the past. Richard is also a technical advisor to Code Chrysalis, an advanced software engineering immersive in Tokyo.
Read more about Richard Kho

Right arrow

Summary


In this chapter, we learned the fundamentals of React development with Redux! We started by creating actions, which dispatch intent to our Redux store. Then, we wrote reducers to handle that intent and update our state tree. We also built a store that consolidated our reducers and middleware.

Afterwards, we used the Connect method to wrap a container around a React component, giving it access to any actions and parts of the state tree of our choosing.

We also converted the existing EditTask and TasksList components to be less reliant on the local state and use its logic from the state tree.

Later in the chapter, we discovered how to temporarily delay the dispatching of actions to perform necessary asynchronous calls first by using Redux-Thunk. This, in conjunction with subscribing our store to any updates, allowed us to have a fully persistent app that used AsyncStorage to keep its data.

Finally, we made sure that every step along the way kept the Android support we started the chapter...

lock icon
The rest of the page is locked
Previous PageNext Chapter
You have been reading a chapter from
React Native By Example
Published in: Apr 2017Publisher: PacktISBN-13: 9781786464750

Author (1)

author image
Richard Kho

Richard Kho is a software engineer living in San Francisco. He taught himself how to code in 2014 and has lived a past life as a photographer and cinematographer. He currently works for Capital One and has taught software engineers at Hack Reactor in the past. Richard is also a technical advisor to Code Chrysalis, an advanced software engineering immersive in Tokyo.
Read more about Richard Kho