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.
Glossary: React Beyond the Basics
Also written: import()
`import("./Checkout.tsx")` with brackets loads a file at that moment and returns a promise. `lazy` uses it to split code.