lazy<P> function

LazyComponent<P> lazy<P>(
  1. LazyComponentLoader<P> load
)

Defers loading a component until it is rendered.

JavaScript and SSR renderers resolve the loader through React.lazy; wrap the result in suspense when a visible loading state is required.

See https://react.dev/reference/react/lazy.

Implementation

LazyComponent<P> lazy<P>(LazyComponentLoader<P> load) => LazyComponent(load);