File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ What's it look like?
66
66
67
67
``` js
68
68
import { Router , Route } from ' react-router' ;
69
- import BrowserHistory from ' react-router/lib/BrowserHistory' ;
69
+ import { history } from ' react-router/lib/BrowserHistory' ;
70
70
71
71
var App = React .createClass ({/* ...*/ });
72
72
var About = React .createClass ({/* ...*/ });
@@ -115,7 +115,7 @@ var User = React.createClass({
115
115
// instead, all you really need is a single root route, you don't need to
116
116
// colocate the entire config).
117
117
React .render ((
118
- < Router history= {new BrowserHistory }>
118
+ < Router history= {history }>
119
119
< Route path= " /" component= {App}>
120
120
< Route path= " about" component= {About}/ >
121
121
< Route path= " users" component= {Users} indexComponent= {RecentUsers}>
You can’t perform that action at this time.
0 commit comments