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.
2 parents 7a1b60f + 2c49b7e commit 6baec9eCopy full SHA for 6baec9e
doc/00 Guides/Server Rendering.md
@@ -25,7 +25,8 @@ synchronously.
25
26
```js
27
// server.js
28
-import { Router, Location } from 'react-router';
+import Router from 'react-router';
29
+import Location from 'react-router/lib/Location';
30
import routes from './routes';
31
32
// you'll want to configure your server to serve up static assets, and
@@ -38,7 +39,7 @@ serveNonStaticPaths((req, res) => {
38
39
// branch of components in the initialState
40
fetchSomeData(initialState.components, (error, initialData) => {
41
var html = React.renderToString(
- <Router history={history} {...initialState}/>
42
+ <Router {...initialState}/>
43
);
44
res.send(renderFullPage(html, initialData));
45
});
0 commit comments