Dmytro Morar
State Management

Action

An action is a plain object that describes what happened.

Shape

  • type: required string identifier
  • payload: optional data

Role

  • Only way to trigger a state change
  • Reducers decide how to handle it

On this page