การจัดการ state ใน React Native (เช่นเดียวกับใน React) มีตั้งแต่ state เฉพาะคอมโพเนนต์ (useState) ไปจนถึง state ที่แชร์กัน/global ผ่าน Context หรือไลบรารีอย่าง Redux, Zustand และอื่น ๆ การเข้าใจตัวเลือกและเวลาที่ควรใช้แต่ละแบบเป็นเรื่องสำคัญเมื่อแอปเติบโตขึ้น
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
