Rendering

Suspense boundary integration

A Suspense boundary provides a fallback when a descendant suspends through a supported rendering integration. It is not a generic HTTP loading detector or an error boundary. On initial suspension before mount, state is not preserved. Use a separate error boundary for failures. Source: https://react.dev/reference/react/Suspense. Documentation-reviewed illustrative draft; installed declarations and runtime not verified.

Formal Syntax & Structure

nextjs syntaxnextjs
<Suspense fallback={...}>...</Suspense>

Working Example

Example Snippetnextjs
import {Suspense} from 'react';import {Description} from './sections';export default function Page(){return <Suspense fallback={<p role='status'>Loading description</p>}><Description/></Suspense>;}
Next.js Reference