We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6db7101 commit bb3ceaaCopy full SHA for bb3ceaa
examples/with-styled-components/pages/_document.js
@@ -4,7 +4,9 @@ import styleSheet from 'styled-components/lib/models/StyleSheet'
4
export default class MyDocument extends Document {
5
static async getInitialProps ({ renderPage }) {
6
const page = renderPage()
7
- const styles = styleSheet.rules().map(rule => rule.cssText).join('\n')
+ const styles = (
8
+ <style dangerouslySetInnerHTML={{ __html: styleSheet.rules().map(rule => rule.cssText).join('\n') }} />
9
+ )
10
return { ...page, styles }
11
}
12
0 commit comments