Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function renderIsomorphic() {
const { html, css } = renderStatic(() => {
return ReactDOMServer.renderToString(React.createElement(TodoApp, {}));
}, 'server');
return (
`` +
`` +
`<title>Server side rendering test</title>` +
`<style>${css}</style>` +
`` +
`` +
`<div id="content">${html}</div>` +
ReactMinScripts +
AppScript +
`` +
``
);