Flux అనేది (Facebook నుండి వచ్చిన) స్థితిని నిర్వహించడానికి ఒక ఆర్కిటెక్చర్ నమూనా ఏకదిక్కు (ఒక మార్గం) డేటా ప్రవాహం కలిగి ఉంటుంది. ఇది Redux కి సంభావిత ఆధారం మరియు చాలా ఆధునిక స్థితి లైబ్ररీలను ప్రభావితం చేసింది. ప్రధాన ఆలోచన: డేటా ఒకటి, predicted దిశలో ప్రవహిస్తుంది.
ఏకదిక్కు చక్రం
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
