Reduxは3つの基本原則に基づいて構築された予測可能な状態コンテナです:単一のstore、読み取り専用の状態でactionsのみで変更可能、そして純粋なreducerが次の状態を計算します。データは一方向に流れ、変更は追跡可能になります。
3つの原則
text
1. Single source of truth — the whole app's state lives in ONE store object
2. State is read-only — you never mutate it; you DISPATCH actions to change it
3. Changes via pure reducers — (state, action) => newState, no side effects
