Unverified Commit 4b13d807 authored by Michal Landsman's avatar Michal Landsman Committed by GitHub

doc: styled-components has stable version (#53539)

replace rc.1 by stable version
Co-authored-by: 's avatarSteven <229881+styfle@users.noreply.github.com>
parent 99372fbe
...@@ -129,7 +129,7 @@ export default function RootLayout({ children }) { ...@@ -129,7 +129,7 @@ export default function RootLayout({ children }) {
### Styled Components ### Styled Components
Below is an example of how to configure `styled-components@v6.0.0-rc.1` or greater: Below is an example of how to configure `styled-components@6` or newer:
First, use the `styled-components` API to create a global registry component to collect all CSS style rules generated during a render, and a function to return those rules. Then use the `useServerInsertedHTML` hook to inject the styles collected in the registry into the `<head>` HTML tag in the root layout. First, use the `styled-components` API to create a global registry component to collect all CSS style rules generated during a render, and a function to return those rules. Then use the `useServerInsertedHTML` hook to inject the styles collected in the registry into the `<head>` HTML tag in the root layout.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment