f544a90ca4
* Updating the with-emotion-swc example to use TypeScript * Updating dependencies * Adding @types packages for react and react-dom * Adding @types/node |
||
---|---|---|
.. | ||
pages | ||
shared | ||
.gitignore | ||
next-env.d.ts | ||
next.config.js | ||
package.json | ||
README.md | ||
tsconfig.json |
Emotion Example
Extract and inline critical css with @emotion/css, @emotion/server, @emotion/react, and @emotion/styled.
Preview
Preview the example live on StackBlitz:
Deploy your own
Deploy the example using Vercel:
How to use
Execute create-next-app
with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example with-emotion-swc with-emotion-swc-app
# or
yarn create next-app --example with-emotion-swc with-emotion-swc-app
# or
pnpm create next-app --example with-emotion-swc with-emotion-swc-app
Deploy it to the cloud with Vercel (Documentation).