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

Taught in

References