We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a04a5ed commit 50fa306Copy full SHA for 50fa306
docs/guides/server-rendering.md
@@ -21,7 +21,7 @@ var routes = (
21
app.use(function (req, res) {
22
// pass in `req.path` and the router will immediately match
23
Router.run(routes, req.path, function(Handler) {
24
- var content = <Handler/>;
+ var content = React.renderToString(<Handler/>);
25
res.render('main', {content: content});
26
});
27
0 commit comments