Reading 36 - AvreyBrown-401-advanced-javascript/seattle-javascript-401d32 GitHub Wiki
Redux
-
Redux is a predictable state container for JavaScript apps.
-
It helps you write applications that behave consistently…
-
The Redux Store can be likened to the Bank Vault. It holds the state of your application — and keeps it safe.
-
The state of your whole application is stored in an object tree within a single Redux store.
-
State is read-only:
-
The only way to change the state is to emit an action, an object describing what happened.
-
actions can be represented by an object that looks like this:
-
{ type: "WITHDRAW_MONEY", amount: "$10,000"}