40f4cf4866
Hiya! I was asked to add an example of how to use [Compiled](https://compiledcssinjs.com/) with Next.js, figured I might as well at it to the source 😄. Let me know if there's any changes needed. |
||
---|---|---|
.. | ||
components | ||
pages | ||
style | ||
.babelrc | ||
.gitignore | ||
next.config.js | ||
package.json | ||
README.md |
Example app with Compiled (CSS-in-JS)
This example features how to use Compiled as the build time CSS-in-JS styling solution instead of styled-jsx.
Deploy your own
Deploy the example using Vercel:
How to use
Execute create-next-app
with npm or Yarn to bootstrap the example:
npx create-next-app --example with-compiled-css with-compiled-css-app
# or
yarn create next-app --example with-compiled-css with-compiled-css-app
Deploy it to the cloud with Vercel (Documentation).