React Native میں state management (جیسے React میں) local component state (useState) سے شروع ہوتی ہے اور Context کے ذریعے shared/global state تک پہنچتی ہے، یا Redux، Zustand اور دیگر لائبریریز استعمال کرتے ہوئے۔ آپشنز کو سمجھنا اور ہر ایک کو کب استعمال کریں یہ اہم ہے کیونکہ ایپلیکیشنز بڑی ہوتی ہیں۔
Local state اور lifting state up
useState → local component state (simple, for one component)
LIFTING STATE UP → move shared state to a common parent, pass down via props
→ works for moderate sharing, but "PROP DRILLING" (passing through many layers) is painful
