example/ssr.js
function renderToString(reactClass, data) {
		let classPath = path.join(viewsDir, reactClass);
		let element = React.createElement(require(classPath).default, data);
		return ReactDOMServer.renderToString(element);
	}
function renderToString(reactClass, data) {
		let classPath = path.join(viewsDir, reactClass);
		let element = React.createElement(require(classPath).default, data);
		return ReactDOMServer.renderToString(element);
	}
function renderToString ( reactClass , data ) { let classPath = path . join ( viewsDir , reactClass ) ; let element = React . createElement ( require ( classPath ) . default , data ) ; return ReactDOMServer . renderToString ( element ) ; }
Render a react class to string
Render a react class to string