lifting state up
Moving state from several child components into their closest common parent so they can share it.
In more detail
The parent owns the value and passes it down as props, plus callbacks that let children ask for changes. Lift only as high as needed, because every component below the owner re-renders when the state changes.
Related terms
- single source of truth — The one agreed place where a piece of information is maintained, so every copy is generated from it rather than edited by hand.
- closest common ancestor — The lowest component in the tree that contains all the components needing a piece of state.
- state colocation — Keeping state as close as possible to the components that use it, rather than high up in the tree or in global storage.
- one-way data flow — The React rule that data moves down the tree as props, and children report changes upward only by calling functions the parent passed them.
Taught in
- Lifting State Up: Colocation, Ownership, And Data Flow — React 19 & Modern Component Architecture
- Render Diagnostics: Profiling Re-Renders with React DevTools — React 19 & Modern Component Architecture