← React Intermediate Questions - Set 2 Q15

What is code splitting and how can you implement it in React?

React Intermediate Questions - Set 2

Example

const Reports = lazy(() => import('./Reports'));
<Suspense fallback={<Spinner />}><Reports /></Suspense>;

What to notice

← Back to the question list