Skip to content

Commit

Permalink
examples: update with-styletron README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JamBalaya56562 committed Dec 9, 2024
1 parent c2078d0 commit 4005989
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 4005989

Please sign in to comment.