State Management
Action
An action is a plain object that describes what happened.
Shape
type: required string identifierpayload: optional data
Role
- Only way to trigger a state change
- Reducers decide how to handle it
An action is a plain object that describes what happened.
type: required string identifierpayload: optional data