mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
improve server-side rendering (#2322)
This commit is contained in:
parent
8277d43190
commit
d8bc386282
|
@ -18,7 +18,7 @@ export default class MyDocument extends Document {
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
const styleNodes = this.props.sheetList.map(({ type, media, css }) => (
|
const styleNodes = this.props.sheetList.map(({ type, media, css }) => (
|
||||||
<style data-fela-type={type} media={media}>{css}</style>
|
<style data-fela-type={type} media={media} dangerouslySetInnerHTML={{ __html: css }} />
|
||||||
))
|
))
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue