Skip to content

Commit

Permalink
Merge pull request #3587 from pravdomil/patch-1
Browse files Browse the repository at this point in the history
Docs: change div id to root
  • Loading branch information
Sashko Stubailo authored Jun 15, 2018
2 parents 103e8f5 + b3b0726 commit fb9103d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/features/server-side-rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function Html({ content, state }) {
return (
<html>
<body>
<div id="content" dangerouslySetInnerHTML={{ __html: content }} />
<div id="root" dangerouslySetInnerHTML={{ __html: content }} />
<script dangerouslySetInnerHTML={{
__html: `window.__APOLLO_STATE__=${JSON.stringify(state).replace(/</g, '\\u003c')};`,
}} />
Expand Down

0 comments on commit fb9103d

Please sign in to comment.