Skip to content

Commit d6a305a

Browse files
committed
update lessons/06-params.md to reflect 2.0 changes
1 parent 2b9366a commit d6a305a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lessons/06-params.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@ Now open up `index.js` and add the new route.
4545
// ...
4646
// import Repo
4747
import Repo from './modules/Repo'
48+
// update imports
49+
import { Router, Route, hashHistory, IndexRoute, Home } from 'react-router'
4850

4951
render((
50-
<Router>
52+
<Router history={hashHistory}>
5153
<Route path="/" component={App}>
5254
<IndexRoute component={Home}/>
5355
<Route path="/repos" component={Repos}/>

0 commit comments

Comments
 (0)