@b9g/crank/async #
Utilities for handling asynchronous components and lazy loading.
Installation #
npm install @b9g/crank
import {lazy, Suspense, SuspenseList} from "@b9g/crank/async";
Functions #
- lazy - Create lazy-loaded components
Components #
- Suspense - Display fallback while children load
- SuspenseList - Coordinate reveal order of Suspense boundaries