React Native માં સ્ટેટ મینેજમેન્ટ (React જેમ છે તેમ) લોકલ કમ્પોનેન્ટ સ્ટેટ (useState) થી શરૂ થાય છે અને Context દ્વારા શેર્ડ/ગ્લોબલ સ્ટેટ તરફ જાય છે, અથવા Redux, Zustand, અને અન્ય લાઇબ્રેરી જેવી. ઍપ્લિકેશન વધતા હોય તો વિકલ્પો અને પ્રત્યેક કયારે વાપરવું તે સમજવું મહત્વપૂર્ણ છે.
લોકલ સ્ટેટ અને સ્ટેટ લિફ્ટિંગ
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
