State არის ნებისმიერი ის მონაცემი, რომელიც შეიძლება შეიცვალოს დროის განმავლობაში და რაც UI-ს დასაჩვენებლად არის საჭირო. როდესაც state იცვლება, UI განახლდება ამის შესაბამისად. ეს არის თქვენი აპლიკაციის "მეხსიერება" ნებისმიერ მომენტში.
State-ის მაგალითები
✓ A counter value, a form's input text, a toggle (on/off)
✓ Whether a modal is open, the active tab, loading/error flags
✓ The logged-in user, items in a cart, fetched API data
✓ The current theme (dark/light), selected filters
