Skip to content
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

Example on how to use styled-components + material ui in Document.js #982

Closed
serge20 opened this issue Apr 17, 2019 · 2 comments
Closed
Labels

Comments

@serge20
Copy link

serge20 commented Apr 17, 2019

I've been trying to migrate from next.js to razzle. I'm running into a problem since I use both styled-components and material-ui. I can't find an example that uses the Document.js file to do SSR on the styles for both libraries.

Anyone has tried to do that?

@edersign
Copy link

Do u need edit a server.js , you can see the template of material-ui.

@stale stale bot added the stale label Jun 17, 2019
@nimaa77
Copy link
Collaborator

nimaa77 commented Mar 17, 2020

hello, @serge20 please use after.js. it has the same setup as nextjs with razzle for webpack tolling

@nimaa77 nimaa77 closed this as completed Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants