rsnext/examples/with-noscript
Henrik Wenz 02e75cfdd1 Simplify with-noscript example (#9094)
## Changelog

- Removed react-lazyload
- Removed images
- Removed ReactDOMServer from Client
- Removed next.config.js

## Notes

**CommonJS vs ESM:** In the future we might be able to use top level `await` in order to import only on the server (e.g.: `await import(“react-dom/server”)`)

Until then we need to mix CommonJS and ESM in favor of messing with the webpack config.
2019-10-16 12:36:40 +02:00
..
components Simplify with-noscript example (#9094) 2019-10-16 12:36:40 +02:00
pages Simplify with-noscript example (#9094) 2019-10-16 12:36:40 +02:00
package.json Simplify with-noscript example (#9094) 2019-10-16 12:36:40 +02:00
README.md Replace the deprecated Create Next App URL (#9032) 2019-10-10 23:34:14 -04:00

Noscript example

How to use

Using create-next-app

Execute create-next-app with Yarn or npx to bootstrap the example:

npx create-next-app --example with-noscript with-noscript-app
# or
yarn create next-app --example with-noscript with-noscript-app

Download manually

Download the example:

Development

Install it and run:

npm

npm install
npm run dev
# or
yarn
yarn dev

yarn

yarn install
yarn run dev

Production

npm

npm install
npm run build
npm start

yarn

yarn install
yarn run build
yarn start

Deploy it to the cloud with now (download)

now

About example

This example show you how to use <noscript></noscript> with image resource in next.js