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