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.
In more detail
Because each value has one owner and flows in one direction, you can trace any change back to where it started. Children never change the parent state directly; they only ask for a change.
Related terms
- prop — An input passed to a React component, written like an HTML attribute, such as size="lg" in <Button size="lg">.
- lifting state up — Moving state from several child components into their closest common parent so they can share it.
- callback — A function you pass to other code so it can call you back later, for example when an event happens or a timer fires.
Taught in
- Props Contract: Immutability, Children, And Polymorphic Tags — React 19 & Modern Component Architecture
- useImperativeHandle: Controlled Ref Forwarding Boundaries — React 19 & Modern Component Architecture
- Lifting State Up: Colocation, Ownership, And Data Flow — React 19 & Modern Component Architecture
- Higher-Order Components And Render Props: Tradeoff Analysis — React 19 & Modern Component Architecture
- Client-Side Data Fetching Architectures with Suspense — React 19 & Modern Component Architecture