For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /api/react.suspense.md.
This is the dev preview website. Check out the document at lynx-stack.dev

Home > @lynx-js/react > Suspense

Suspense variable

Lets you display a fallback until its children have finished loading.

Signature:

Suspense: typeof import('react').Suspense

Example

import { Suspense, lazy } from '@lynx-js/react';

const ProfileDetails = lazy(() => import('./ProfileDetails.jsx'));

<Suspense fallback={<Loading />}>
  <ProfileDetails />
</Suspense>