Skip to content

Commit

Permalink
Update server-rendering.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanflorence committed Nov 29, 2014
1 parent a04a5ed commit 50fa306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/server-rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var routes = (
app.use(function (req, res) {
// pass in `req.path` and the router will immediately match
Router.run(routes, req.path, function(Handler) {
var content = <Handler/>;
var content = React.renderToString(<Handler/>);
res.render('main', {content: content});
});
});
Expand Down

0 comments on commit 50fa306

Please sign in to comment.