Created
October 1, 2017 14:46
-
-
Save koba04/3b77ba718c8a3d2ce9f782c6cb17bed7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
const Html = (props) => { | |
return ( | |
<html> | |
<head> | |
<title>App</title> | |
</head> | |
<body> | |
<div id="app">{props.children}</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