Skip to content

Commit 6baec9e

Browse files
committed
Merge pull request #1345 from heebtob/master
Some doc changes for server side rendering in 1.0.0-beta2
2 parents 7a1b60f + 2c49b7e commit 6baec9e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/00 Guides/Server Rendering.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ synchronously.
2525

2626
```js
2727
// server.js
28-
import { Router, Location } from 'react-router';
28+
import Router from 'react-router';
29+
import Location from 'react-router/lib/Location';
2930
import routes from './routes';
3031

3132
// you'll want to configure your server to serve up static assets, and
@@ -38,7 +39,7 @@ serveNonStaticPaths((req, res) => {
3839
// branch of components in the initialState
3940
fetchSomeData(initialState.components, (error, initialData) => {
4041
var html = React.renderToString(
41-
<Router history={history} {...initialState}/>
42+
<Router {...initialState}/>
4243
);
4344
res.send(renderFullPage(html, initialData));
4445
});

0 commit comments

Comments
 (0)