rsnext/examples/with-dynamic-import
Yohei Tsubuku df16f74f0f
Fix the typo on README.md (#48274)
This is a very tiny fix. I hope it helps.
`examples` → `example`
2023-04-12 02:07:38 +00:00
..
components Run next/link codemod for Next.js 13 on examples (#41913) 2022-10-30 21:00:45 +01:00
pages chore: convert with-dynamic-import to TypeScript (#38844) 2022-07-21 02:22:58 +00:00
.gitignore Remove incorrect entries for pnpm debug log (#47241) 2023-03-26 22:26:05 -07:00
next-env.d.ts Remove incorrect entries for pnpm debug log (#47241) 2023-03-26 22:26:05 -07:00
package.json chore: convert with-dynamic-import to TypeScript (#38844) 2022-07-21 02:22:58 +00:00
README.md Fix the typo on README.md (#48274) 2023-04-12 02:07:38 +00:00
tsconfig.json chore: convert with-dynamic-import to TypeScript (#38844) 2022-07-21 02:22:58 +00:00

Example app with dynamic-imports

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

Deploy your own

Deploy the example using Vercel or preview live with StackBlitz

Deploy with Vercel

How to use

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

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

Deploy it to the cloud with Vercel (Documentation).