silverwolf-x's picture
|
download
raw
1.13 kB
# Example app with dynamic-imports
This example shows how to dynamically import modules via [`import()`](https://github.com/tc39/proposal-dynamic-import) API
## Deploy your own
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-dynamic-import&project-name=with-dynamic-import&repository-name=with-dynamic-import)
## How to use
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) 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](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).

Xet Storage Details

Size:
1.13 kB
·
Xet hash:
65ed99747d00c850538c7e33d8e166abadbd5cef1aa8419dcf11e13d1b536d41

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.