Unidirectional data flow
Unidirectional data flow is a pattern in which data, state changes, or updates propagate along defined paths in one direction, without automatic reverse propagation.
Acing the Frontend Interview
One-way data flow propagates application data through an interface hierarchy in a single direction.
- How it is used
- Structures React state and component communication around predictable parent-to-child updates.
- How deep it goes
- Explains props, updater functions, reconciliation, prop drilling, and Context API, while deferring detailed state-container architecture.
- Examples
- Uses nested prop drilling through ChildA, ChildB, and ChildC, then contrasts it with a Context API provider.
- What you can do after
- Apply it via React props, callbacks, lifted state, Context API, and suitable state-management patterns.
Read how Acing the Frontend Interview explains unidirectional data flow →
Pro Angular 16
One-way data binding is a technique in which data flows from an application value or source to a user-interface representation in a single direction.
- How it is used
- Carries component values into Angular templates to set displayed content, classes, and styles.
- How deep it goes
- Explains binding anatomy, expression evaluation, bracket pitfalls, and idempotence; treats event and two-way bindings separately.
- Examples
- Uses an ngClass div, an omitted-brackets comparison, invalid state-changing expressions, and an interactive product table.
- What you can do after
- Apply it via Angular template bindings to display component values and diagnose literal-value or state-changing expression mistakes.
The Joy of JavaScript
Unidirectional data flow is an architecture in which data moves in one direction through a system from source to sink.
- How it is used
- Uses streams and promises to structure application data as one-way pipelines from source to sink.
- How deep it goes
- Explains Observable flow, laziness, operators, observers, subscriptions, and cancellation, but does not detail operator implementations.
- Examples
- Demonstrates Observable.of with four words, subscription through next, and explicit unsubscription.
- What you can do after
- Apply the pattern via Observable, Observer, and Subscription abstractions to create, consume, and stop push-based data flows.
Read how The Joy of JavaScript explains unidirectional data flow →
Also covered in
- Functional Programming in C#, Second Edition
- Web Component Development with Modern Libraries and ToolingIn early access (MEAP)
- React Quickly, Second Edition
- Essential TypeScript 5, Third Edition
What to know first
- functional programmingFunctional programming is a programming paradigm that expresses computation through the evaluation and composition of functions, typically favoring immutable data and minimizing mutable state and side effects.
- JavaScriptJavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.
Related concepts
- two-way bindingcontrasts with · Two-way binding is a data-binding relationship in which changes to either of two corresponding values automatically update the other.
- event bindingincludes · Event binding is an association between an event and the expression or handler that responds when the event occurs.
- Reactused by · React is an open-source JavaScript library for building user interfaces from declarative, reusable components.
- square bracket binding syntaxconfigured by · Square bracket binding syntax is Angular template notation that marks a binding as one-way and supplies an evaluated expression to its target.
- agent-based programmingproduced by · A programming approach in which computational agents communicate by sending messages and perform work in response to them.
- data bindingkind of · Data binding is a technique that connects application data with a user interface so values or changes can be represented or synchronized between them.
Questions about unidirectional data flow
What is unidirectional data flow?
Unidirectional data flow is a pattern in which data, state changes, or updates propagate along defined paths in one direction, without automatic reverse propagation.
Which Manning books explain unidirectional data flow?
Acing the Frontend Interview, Pro Angular 16 and The Joy of JavaScript.
What should I know before learning unidirectional data flow?
Manning books that teach unidirectional data flow usually introduce functional programming and JavaScript first.
What is the difference between unidirectional data flow and two-way binding?
Unidirectional data flow is a pattern in which data, state changes, or updates propagate along defined paths in one direction, without automatic reverse propagation. Two-way binding is a data-binding relationship in which changes to either of two corresponding values automatically update the other.
What kinds of unidirectional data flow are there?
Kinds of unidirectional data flow include event binding.
What is unidirectional data flow a kind of?
Unidirectional data flow is a kind of data binding. Data binding is a technique that connects application data with a user interface so values or changes can be represented or synchronized between them.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


