Gurgaon Chapter
Webinar
Gurgaon Chapter

How to make Robot in Node?


John Miller Gurgaon Chapter

To specify how the state tree is transformed by actions, you write pure reducers.

Reducers are just pure functions that take the previous state and an action, and return the next state. Remember to return new state objects, instead of mutating the previous state. You can start with a single reducer, and as your app grows, split it off into smaller reducers that manage specific parts of the state tree. Because reducers are just functions, you can control the order in which they are called, pass additional data, or even make reusable reducers for common tasks such as pagination.

Speakers
  • NA 1.5k 0
Chapters Leader

Webinar Details

Image Loading...