The state of your whole application is stored in an object tree within a single store.
-
ONE STORE TO SAVE THEM ALL
-
ONE STORE TO FIND THEM
-
ONE STORE TO BRING THEM ALL
The only way to change the state is to emit an action.
Action : an object describing what happened.
{
type: 'INCREMENT',
value: 1
}
[{
"id": 1,
"title": "First Article",
"author": {
"id": 1,
"name": "David"
}
}, {
"id": 2,
"title": "Second Article",
"author": {
"id": 1,
"name": "David"
}
}]
-
Makes it easier to structure a big application
-
Gain in performance by Normalizr your store
-
Awesome debugger extension