Skip to content

Commit 50fa306

Browse files
committed
Update server-rendering.md
1 parent a04a5ed commit 50fa306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guides/server-rendering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var routes = (
2121
app.use(function (req, res) {
2222
// pass in `req.path` and the router will immediately match
2323
Router.run(routes, req.path, function(Handler) {
24-
var content = <Handler/>;
24+
var content = React.renderToString(<Handler/>);
2525
res.render('main', {content: content});
2626
});
2727
});

0 commit comments

Comments
 (0)