closest common ancestor
The lowest component in the tree that contains all the components needing a piece of state.
In more detail
Putting shared state there, and no higher, gives every component that needs it access through props while keeping re-renders to the smallest subtree. For two sibling fields, it is simply their shared parent.
Related terms
- lifting state up — Moving state from several child components into their closest common parent so they can share it.
- 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.
Taught in
- Lifting State Up: Colocation, Ownership, And Data Flow — React 19 & Modern Component Architecture