Concept Flow - useState hook introduction
Component renders
useState called
State variable created with initial value
Component JSX uses state value
User triggers event
setState called with new value
React schedules re-render
Component re-renders with updated state
UI updates to show new state
The component renders and calls useState to create a state variable. When setState is called, React re-renders the component with the updated state, updating the UI.