lgmf / next-styled-jsx-global-bug

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Preview

Preview the example live on StackBlitz:

Open in StackBlitz

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).

About


Languages

Language:JavaScript 87.6%Language:SCSS 12.4%