Reading: Application State - jacobwendt-401-advanced-javascript/cr-js-401d3 GitHub Wiki

Reading: Application State

Redux Principles

  1. One application state object managed by one store
  2. The only way to change the state is to emit an action, an object describing what happened
  3. 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