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

Taught in

References