Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumReactlazy and SuspenseSingle-choice MCQ

Why does React.lazy require the imported module to use a default export, and what breaks if you only have named exports?

const Comp = React.lazy(() => import('./Comp')); // Comp uses export const Comp