Skip to content

Commit

Permalink
Updated the docs to use the static getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Schniz committed Jun 27, 2015
1 parent fd87dfb commit 847fef4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions doc/00 Guides/0 Overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ var App = React.createClass({
// Finally we render a `Router` component with some `Route`s, it'll do all
// the fancy routing stuff for us.
React.render((
<Router history={history()}>
<Router history={history}>
<Route path="/" component={App}>
<Route path="about" component={About}/>
<Route path="inbox" component={Inbox}/>
Expand All @@ -162,7 +162,7 @@ var routes = {
]
};

React.render(<Router history={history()} children={routes}/>, document.body);
React.render(<Router history={history} children={routes}/>, document.body);
```

Adding more UI
Expand Down Expand Up @@ -191,7 +191,7 @@ var Inbox = React.createClass({
});

React.render((
<Router history={history()}>
<Router history={history}>
<Route component={App}>
<Route path="about" component={About}/>
<Route path="inbox" component={Inbox}>
Expand Down
2 changes: 1 addition & 1 deletion doc/03 History/0 Histories.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ an instance of one with your own options for query parsing.

```js
import { history } from 'react-router/lib/BrowserHistory';
<Router history={history()}/>
<Router history={history}/>
```

If you need to do your own query parsing:
Expand Down
2 changes: 1 addition & 1 deletion doc/03 History/BrowserHistory.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import { Router } from 'react-router';
import { history } from 'react-router/lib/BrowserHistory';

React.render((
<Router history={ history() }>
<Router history={ history }>
{/* ... */}
</Router>
), document.body);
Expand Down
2 changes: 1 addition & 1 deletion doc/03 History/HashHistory.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { Router } from 'react-router';
import { history } from 'react-router/lib/HashHistory';

React.render((
<Router history={history()}>
<Router history={history}>
{/* ... */}
</Router>
), document.body);
Expand Down

0 comments on commit 847fef4

Please sign in to comment.