Back to Next Js

Example app with dynamic-imports

examples/with-dynamic-import/README.md

16.2.51.1 KB
Original Source

Example app with dynamic-imports

This example shows how to dynamically import modules via import() API

Deploy your own

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

bash
npx create-next-app --example with-dynamic-import with-dynamic-import-app
bash
yarn create next-app --example with-dynamic-import with-dynamic-import-app
bash
pnpm create next-app --example with-dynamic-import with-dynamic-import-app

Deploy it to the cloud with Vercel (Documentation).