Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var everything = React.createElement(
{
render: return <html>
<body>
<mycomponent model = { model } />
<script>
{
"model = " + JSON.stringify(modle) + ";" +
"React.renderComponent(<everything />), document);"
}
</script>
</body>
</html>
});
writeToClient(React.renderComponentToString(<everything />));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment