Skip to content

Commit

Permalink
Docs: Fix custom <Document> section (#94)
Browse files Browse the repository at this point in the history
- Added `data` prop
- Fixed `styleTags´
  • Loading branch information
fredrik-sogaard authored and jaredpalmer committed Feb 11, 2018
1 parent 2302b8c commit d87e786
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class Document extends React.Component {
</head>
<body {...bodyAttrs}>
<AfterRoot />
<AfterData />
<AfterData data={data}/>
<script
type="text/javascript"
src={assets.client.js}
Expand Down Expand Up @@ -295,11 +295,11 @@ export default class Document extends React.Component {
{helmet.meta.toComponent()}
{helmet.link.toComponent()}
{/** here is where we put our Styled Components styleTags... */}
{this.props.styleTags}
{styleTags}
</head>
<body {...bodyAttrs}>
<AfterRoot />
<AfterData />
<AfterData data={data}/>
<script
type="text/javascript"
src={assets.client.js}
Expand Down

0 comments on commit d87e786

Please sign in to comment.