The single immutable state tree

In notebook:
Egghead Redux
Created at:
2016-07-09
Updated:
2019-08-24
Tags:
libraries React JavaScript pattern
First principle of Redux: your whole state is just one single JavaScript object. With each change, it goes through a series of mutations.

Each change is explicit. 

In fact, the state can be a single number, array, or (usually) an object.