be4r
10/03/2017, 5:25 PMfunction Html({ content, state }) {
return (
<html>
<body>
<div id="content" dangerouslySetInnerHTML={{ __html: content }} />
<script dangerouslySetInnerHTML={{
__html: `window.__APOLLO_STATE__=${JSON.stringify(state).replace(/</g, '\\u003c')};`,
}} />
</body>
</html>
);
}
without including the bundle.js script, js wont work. But if I do, the queries refetch after the server renders static markup.