const React = require('react');
const ReactDOMServer = require('react-dom/server');
const App = require('../../src/App').default;

module.exports = function render(locals, callback) {
	const html = ReactDOMServer.renderToStaticMarkup(React.createElement(App, locals));
	callback(null, '<!DOCTYPE html>' + html);
}
