React

State

Definition

Data that a component manages internally and can change over time. When state updates, React re-renders the component. Use `useState` for simple state and `useReducer` for complex state logic.

Code Example

Jsx

Learn More

Related Terms