React
React StateReact State
React state stores data that changes over time.
Read Time
5 min readDifficulty
BeginnerLast Updated
Jun 15, 2026Version
v1.0.0Introduction
State acts as the memory of a React component. While props are passed in from the outside, state is managed entirely on the inside. When state data changes, React automatically refreshes the component to show the new data.
Key Points
- State tracks data like user input or score.
- Updating state forces the component to re-render.
- State is completely private to the component.
- Functional components manage state using Hooks.