← React Beginner Questions - Set 10 Q100

What is the purpose of React’s Suspense and lazy?

React Beginner Questions - Set 10

Example

const Chart = lazy(() => import('./Chart'));
<Suspense fallback={<p>Loading…</p>}><Chart /></Suspense>;

What to notice

← Back to the question list