Reading: Application State - jacobwendt-401-advanced-javascript/cr-js-401d3 GitHub Wiki
Reading: Application State
Redux Principles
- One application state object managed by one store
- The only way to change the state is to emit an action, an object describing what happened
- To specify how the state tree is transformed by actions, you write pure reducers
Regarding Testing...
- Pure functions should be easy to test as it will return the same output
- Its important to test reducers
- Start off by making an outline of your tests