Flux என்பது (Facebook இலிருந்து வந்த) நிலை நிர்வாகத்திற்கான ஒரு স்থাপত்य முறை ஒரு திசைக் (ஒரு வழி) தரவு ஓட்டம் கொண்டு. இது Redux க்கான கருத்தியல் அடிப்படை மற்றும் பெரும்பாலான நவீன நிலை நூலகங்களை பாதிக்கப்பட்டு. முக்கிய ஆண்டையம்: தரவு ஒரு ஒற்றைப்படையான, முன்னறிவிக்கக்கூடிய திசையில் பாய்கிறது.
ஒரு திசைக் சுழற்சி
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
