Redux (W15D1) - Learning Objectives

Redux

  1. Describe the Redux data cycle
  2. Describe the role of the store in the Redux architecture
  3. Explain what a reducer is
  4. Use the createStore method to create an instance of a Redux store
  5. Use the store.dispatch method to dispatch an action to trigger a state update
  6. Use the store.subscribe method to listen for state updates
  7. Use the store.getState method to get the current state
  8. Use a switch statement within a reducer function to handle multiple action types
  9. Describe why it’s important for a reducer to avoid mutating the current state when creating the next state
  10. Write an action creator function to facilitate in the creation of action objects
  11. Use constants to define action types to prevent simple typos in action type string literals