April 2017
Intermediate to advanced
414 pages
8h 14m
English
In Redux, rather than having each component manage its own state, we deal with one single-state tree that contains all the logic in our application. For example, for the Tasks app we built in the first two chapters, you can visualize it as follows:
{
cellExpanded: false,
tasks: [
{
title: 'Buy Milk',
completed: false,
dueDate: undefined
},
{
title: 'Walk Dog',
completed: true,
dueDate: undefined
}
],
}
This helps make our app a lot easier to debug, since we're only dealing with one object tree when looking at the information it contains.
Read now
Unlock full access