https://github.com/sboudrias/bug-next-head
Demo project of a next.js bug with the Head component
https://github.com/sboudrias/bug-next-head
Last synced: 7 months ago
JSON representation
Demo project of a next.js bug with the Head component
- Host: GitHub
- URL: https://github.com/sboudrias/bug-next-head
- Owner: SBoudrias
- Created: 2018-09-01T11:44:21.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-01T14:06:39.000Z (about 7 years ago)
- Last Synced: 2025-01-23T19:49:51.413Z (9 months ago)
- Language: JavaScript
- Size: 49.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example app with dynamic-imports
## How to use
### Using `create-next-app`
Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
```bash
npx create-next-app --example with-dynamic-import with-dynamic-import-app
# or
yarn create next-app --example with-dynamic-import with-dynamic-import-app
```### Download manually
Download the example:
```bash
curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/with-dynamic-import
cd with-dynamic-import
```Install it and run:
```bash
npm install
npm run dev
# or
yarn
yarn dev
```Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.co/download))
```bash
now
```## The idea behind the example
This examples shows how to dynamically import modules via [`import()`](https://github.com/tc39/proposal-dynamic-import) API