lib/server.js
function returnResponse(res, Handler, data, perfInstance) {
        var content = React.renderToString(React.createElement(Handler, { data: data })),
            html = '<!DOCTYPE html>' + content;
        options.log && log(options.log, 'perf', perfInstance());
        res.end(html);
    }
function returnResponse(res, Handler, data, perfInstance) {
        var content = React.renderToString(React.createElement(Handler, { data: data })),
            html = '<!DOCTYPE html>' + content;
        options.log && log(options.log, 'perf', perfInstance());
        res.end(html);
    }
function returnResponse ( res , Handler , data , perfInstance ) { var content = React . renderToString ( React . createElement ( Handler , { data : data } ) ) , html = '<!DOCTYPE html>' + content ; options . log && log ( options . log , 'perf' , perfInstance ( ) ) ; res . end ( html ) ; }
Server side rendering
Server side rendering