Redux 3原則:State is read-only
● Action を受けとって State を変更することは Flux と同じ
● State は常に読み取り専用で、変更は Action を通じてのみ可能
https://redux.js.org/tutorials/essentials/part-2-app-structure
Slide 27
Slide 27 text
Redux 3原則:Single source of truth
● Flux と違い Store がひとつになり、データ管理の場所が一箇所になった
● アプリケーション全体の State をひとつのオブジェクトツリーで表現
https://redux.js.org/understanding/thinking-in-redux/three-principles
Slide 28
Slide 28 text
Redux 3原則:Changes are made with pure functions
● State の更新は Action を受け取った Reducer で処理される
● あるアクションに対する State の更新処理が一箇所にまとまった
● State の更新処理の順番を指定しやすくなった
https://redux.js.org/tutorials/essentials/part-2-app-structure
Slide 29
Slide 29 text
Redux によって解決された React の課題
● Store のデータを参照できるので、Props のバケツリレーがなくなる
● それにより、不要な仮想 DOM 再レンダリングを抑えることができる
引用元:https://www.techscore.com/blog/2018/12/02/react-when-the-render-will-be-called/