Reduxの登場人物
Action
ActionCreator
Store
State
Reducer
1 Action
Stateを更新するActionを定義します。例:todoアプリのステータスを変更します。
2 ActionCreator
Actionを作成するメソッドです。
Storeへのdispatchは行わないです。
3 Store
アプリケーションの状態(state)を保持しているオブジェクトです。
アプリケーション内で一つ存在し、一つのstateを保持しています。
4 State
アプリケーションの状態を表しているオブジェクト
5 Reducer
actionとstateから、新しいstateを作成して返すオブジェクト
関連図
ActionCreator
↓作成
Action
+ → Reducer → 新しいState
現在のState