rsnext/examples/with-styled-jsx/README.md

1.3 KiB

styled-jsx example

Next.js ships with styled-jsx allowing you to write scoped styled components with full CSS support. This is important for the modularity and code size of your bundles and also for the learning curve of the framework. If you know CSS you can write styled-jsx right away.

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

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

npx create-next-app --example with-styled-jsx with-styled-jsx-app
# or
yarn create next-app --example with-styled-jsx with-styled-jsx-app

Deploy it to the cloud with Vercel (Documentation).