Lazy
React.lazy is a React API for defining a component whose code is loaded asynchronously when needed.
React Hooks in Action: With Suspense and Concurrent Mode
lazy is a React API for defining a component whose code is loaded on demand.
- How it is used
- Deploys code splitting to defer bulky or infrequently visited components until users visit routes or initiate interactions.
- How deep it goes
- Explains promise loading, default exports, internal lazy states, and Suspense handoff, but defers rejected-load handling to error boundaries.
- Examples
- Demonstrates a delayed calendar, button-triggered rendering, route-level page splitting, and nested Bookables components.
- What you can do after
- Apply it via React.lazy and dynamic import to reduce initial bundles and provide loading and error fallbacks.
Read how React Hooks in Action: With Suspense and Concurrent Mode explains lazy →
Acing the Frontend Interview
React.lazy is a React API that declares a component whose module is loaded asynchronously when needed.
- How it is used
- Supports modular, domain-based routing by loading feature modules only when their routes are accessed.
- How deep it goes
- Explains asynchronous route loading with Suspense and performance rationale, while leaving failure handling as a follow-up concern.
- Examples
- Demonstrates lazy-loaded checkout, profile, and product modules inside a React Router application.
- What you can do after
- Apply it via React.lazy and Suspense to defer route-feature modules and provide a loading fallback.
Related concepts
- code splittingused by · Code splitting divides application code into separately loadable bundles or chunks, allowing portions to be delivered independently.
- dynamic importuses · Dynamic import is a language feature that asynchronously loads a module at runtime and returns a promise for its module namespace.
- promiseuses · A JavaScript Promise is an object representing the eventual completion or failure of an asynchronous operation and its resulting value or reason.
- component hierarchyuses · A component hierarchy is a tree-structured organization of components connected through parent-child relationships.
- lazy evaluationimplements · Lazy evaluation is an evaluation strategy that defers computing an expression until its value is needed, potentially avoiding the computation entirely.
Questions about lazy
What is lazy?
React.lazy is a React API for defining a component whose code is loaded asynchronously when needed.
Which Manning books explain lazy?
React Hooks in Action: With Suspense and Concurrent Mode and Acing the Frontend Interview.
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.

