Closed
Description
It would really help if we could use the async
version of the React.renderToString
when rendering on the server-side.
app.get('*', function (req, res) {
Router.run(routes, req.path, (Handler, router) => {
// var content = React.renderToString(<Handler/>);
// res.render('index', { content: content });
React.renderToString(<Handler/>, function(content) {
res.render('index', { content: content });
});
});
Metadata
Metadata
Assignees
Labels
No labels