This example shows how to dynamically import modules via import() API
Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example with-dynamic-import with-dynamic-import-appyarn create next-app --example with-dynamic-import with-dynamic-import-apppnpm create next-app --example with-dynamic-import with-dynamic-import-appDeploy it to the cloud with Vercel (Documentation).