Skip to content

Instantly share code, notes, and snippets.

@koba04
Created October 1, 2017 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koba04/93f9a810d30cd5ed6d184e386200856a to your computer and use it in GitHub Desktop.
Save koba04/93f9a810d30cd5ed6d184e386200856a to your computer and use it in GitHub Desktop.
import React from 'react';
const Html = (props) => {
return (
<html>
<head>
<title>App</title>
</head>
<body>
<div id="app" dangerouslySetInnerHTML={ {__html: props.markup} }></div>
<script id="initial-data" type="text/plain" data-json={props.initialData}></script>
<script src="/static/bundle.js"></script>
</body>
</html>
);
};
export default Html;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment