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
State UI ని నడిపిస్తుంది
() {
[count, setCount] = ();
(
);
}
