Buckets:
| # Example app with cxs | |
| This example shows how to use a different styling solution than [styled-jsx](https://github.com/vercel/styled-jsx) that also supports universal styles. That means we can serve the required styles for the first render within the HTML and then load the rest in the client. In this case we are using [cxs](https://github.com/jxnblk/cxs/). | |
| For this purpose we are extending the `<Document />` and injecting the server side rendered styles into the `<head>`. | |
| ## Deploy your own | |
| [](https://vercel.com/new/clone?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-cxs&project-name=with-cxs&repository-name=with-cxs) | |
| ## How to use | |
| Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example: | |
| ```bash | |
| npx create-next-app --example with-cxs with-cxs-app | |
| ``` | |
| ```bash | |
| yarn create next-app --example with-cxs with-cxs-app | |
| ``` | |
| ```bash | |
| pnpm create next-app --example with-cxs with-cxs-app | |
| ``` | |
| Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)). | |
Xet Storage Details
- Size:
- 1.35 kB
- Xet hash:
- e6a69e0e19d01cb446c82e4fc2bb8c76732cc94a1217a6431c063cfddcdae7af
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.