April 2017
Intermediate to advanced
414 pages
8h 14m
English
A store is an object that brings actions and reducers together. It does the following things for us:
One thing to be aware of with Redux is that, in a given application, you will only ever have one store. In the event that we want to split our logic into multiple handlers, we'll actually split the reducers instead, through a method called reducer composition this is something we'll take a look at once we need it.
Here's how a sample store in Redux looks. Let's assume we have the task reducer from before, and another one as follows:
import { combineReducers, createStore, compose ...Read now
Unlock full access