rsnext/examples/with-react-jss
Tanmay Laud f00ad581a1
Added .gitignore to examples that are deployed to vercel (#15127)
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-07-16 10:52:23 -04:00
..
pages update/with-react-jss (#15156) 2020-07-14 13:26:30 +00:00
.babelrc Add react-jss example (#5140) 2018-09-12 15:49:54 +02:00
.gitignore Added .gitignore to examples that are deployed to vercel (#15127) 2020-07-16 10:52:23 -04:00
package.json update/with-react-jss (#15156) 2020-07-14 13:26:30 +00:00
README.md Suggest npx over npm init (#13637) 2020-06-01 17:36:57 +00:00

react-jss example

This example shows how to integrate react-jss and jss in Next.js

The critical styles will be injected into the head when server rendered.

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Using create-next-app

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

npx create-next-app --example with-react-jss with-react-jss-app
# or
yarn create next-app --example with-react-jss with-react-jss-app

Download manually

Download the example:

curl https://codeload.github.com/vercel/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/with-react-jss
cd with-react-jss

Install it and run:

npm install
npm run dev
# or
yarn
yarn dev

Deploy it to the cloud with Vercel (Documentation).