Skip to content

Commit

Permalink
examples: update with-styletron README.md (vercel#73411)
Browse files Browse the repository at this point in the history
## Description

Follow up vercel#73252.
This example no more uses `<Document />` and `<head>`.
So, I update it.

CC: @samcx 

### Adding or Updating Examples

- [x] The "examples guidelines" are followed from our contributing doc
https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md
- [x] Make sure the linting passes by running `pnpm build && pnpm lint`.
See
https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md

Co-authored-by: Sam Ko <[email protected]>
  • Loading branch information
JamBalaya56562 and samcx authored Dec 10, 2024
1 parent 95acd8b commit 1c8eda3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/with-styletron/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This example features how yo 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 [styletron](https://github.com/rtsao/styletron).

For this purpose we are extending the `<Document />` and injecting the server side rendered styles into the `<head>`.
For this purpose we wrap the root layout with the [`Provider`](https://styletron.org/api-reference#provider).

## Deploy your own

Expand Down

0 comments on commit 1c8eda3

Please sign in to comment.