1
0
Fork 0
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:
Robin Frischmann 2017-06-20 17:21:17 +02:00 committed by Tim Neutkens
parent 8277d43190
commit d8bc386282

View file

@ -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 (