Asynchronous rendering

lazy

Creates a component whose loader resolves to a module with a default component.

Formal Syntax & Structure

react syntaxreact
const Panel = lazy(() => import("./Panel.jsx"))

Working Example

Example Snippetreact
const Panel = lazy(() => import("./Panel.jsx"))
React Reference