Flux is patrún ailtireachta (ó Facebook) chun stáit a bhainistiú le sruth sonraí aontreorach (aon-bhealach). Ba bhunús coinníollach a bhí ann do Redux agus thionchair sé an chuid is mó de na leabharlanna stáit nua-aimseartha. An príomhsmaoineamh: soláthraítear sonraí i dtreo singil, intuigthe.
An timthriall aontreorach
Action → Dispatcher → Store → View
↑ │
└───────────────────────────────────┘
(user interaction creates a new Action)
1. Action — a plain object describing WHAT happened ({ type: 'ADD_TODO', text })
2. Dispatcher — a central hub that sends every action to the stores
3. Store — holds state + logic; updates itself in response to actions
4. View — renders from the store; user interactions dispatch new actions
