Skip to content

Commit c22f807

Browse files
committed
Updated the README to call the history singleton
1 parent 645c5f8 commit c22f807

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ What's it look like?
6666

6767
```js
6868
import { Router, Route } from 'react-router';
69-
import BrowserHistory from 'react-router/lib/BrowserHistory';
69+
import { history } from 'react-router/lib/BrowserHistory';
7070

7171
var App = React.createClass({/*...*/});
7272
var About = React.createClass({/*...*/});
@@ -115,7 +115,7 @@ var User = React.createClass({
115115
// instead, all you really need is a single root route, you don't need to
116116
// colocate the entire config).
117117
React.render((
118-
<Router history={new BrowserHistory}>
118+
<Router history={history}>
119119
<Route path="/" component={App}>
120120
<Route path="about" component={About}/>
121121
<Route path="users" component={Users} indexComponent={RecentUsers}>

0 commit comments

Comments
 (0)