lib/utils.js
function (component, props) {
    var Component = React.createFactory(component);
    return ReactDomServer.renderToString(Component(props));
  }
function (component, props) {
    var Component = React.createFactory(component);
    return ReactDomServer.renderToString(Component(props));
  }
function ( component , props ) { var Component = React . createFactory ( component ) ; return ReactDomServer . renderToString ( Component ( props ) ) ; }
Generate a string representation of a react component
@param {function} component - react component
@param {object} props - default props to pass in to the component
@return {string} string representation of your component
Generate a string representation of a react component