Skip to content

Glossary: React Beyond the Basics

dynamic import

Also written: import()

`import("./Checkout.tsx")` with brackets loads a file at that moment and returns a promise. `lazy` uses it to split code.

Where the book teaches it

Related terms

lazycode splittingpromise