“this is just a structured process for updating a property on an object”. That is Redux. -Todd Motto
example action
const action: Action = {
type: 'ADD_TODO',
payload: { label: 'Eat pizza,', complete: false },
};
Store.dispatch()
instructions, we intend to change the state tree.
Store.subscribe()
when the state tree changes we pass in the state down to the subscribe callback
Store.value()
This is a getter, tells us what the state of our store is.
These are functions that are stored in an array and when the state updates the function are called, witht the current state.