Complete React.lazy Import
Fill in the Blank Medium
Question
Fill in the blank to lazily load the Admin component.
Code
const Admin = React._____(() => import("./Admin"));
Hint
This function enables code splitting for components.
Explanation
React.lazy takes a function that returns a dynamic import. It creates a component that loads its code on demand (code splitting), reducing the initial bundle size.
Related Resources
Related Lessons
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.