-
-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need a FAQ page added for this #927
Comments
Hi @quantizor, it looks like this is still not implemented on the site (this is all we have on Next.js https://styled-components.com/docs/advanced#next.js). Is there a new fix, or do I stick to the steps above for a PR? |
PR welcome! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If anyone needs a step by step on how to make styled-components work with Next.js 13 (app router) without any "delay bugs" using client-side rendering, here it is:
Step 1: add the following to your next.config.js file
Step 2: create the registry.tsx file with the following code:
Step 3: add the 'use client' directive to your layout.tsx file and wrap all the children components on your layout with the StyledComponentsRegistry component.
I've made a tutorial if anyone needs further help:
https://www.youtube.com/watch?v=3tgrPm2aKog
Originally posted by @lucasmelz in styled-components/styled-components#3856 (comment)
The text was updated successfully, but these errors were encountered: