提交 c2a208d1 编写于 作者: L Leon 提交者: Tim Neutkens

Update styletron example (#5879)

Missed a fix for the styletron api. Previous config won't work for server rendering.
上级 620b4269
......@@ -16,8 +16,8 @@ export default class MyDocument extends Document {
{this.props.stylesheets.map((sheet, i) => (
<style
className='_styletron_hydrate_'
dangerouslySetInnerHTML={{ __html: sheet.css }}
media={sheet.media || null}
dangerouslySetInnerHTML={{ __html: sheet }}
media={sheet.attrs ? sheet.attrs.media : null}
key={i}
/>
))}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册