最終更新:2023-07-21 (金) 03:28:38 (242d)
Flux
Top / Flux
Facebookが提唱したUIを持ったアプリを作るためのアーキテクチャ
https://github.com/facebookarchive/flux
メンテナンス停止
- 2020/12にメンテナンスモード
- 2023/05にアーカイブ
- The Flux project has been archived and no further changes will be made.
- We recommend using more sophisticated alternatives like Redux, MobX, Recoil, Zustand?, or Jotai?.
特徴
- Flux is a pattern for managing data flow in your application.
- The most important concept is that data flows in one direction.
- 情報の伝播を1方向に制限している
ガイド
パーツ
- Action -> Dispatcher -> Store -> View (React)という4つの役割を持った部品で構築し、データは必ず一方向にしか流れないように設計する