Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
replace hasHistory by browserHistory
hasHistory is not defined and i was getting this error:  undefined is not an object (evaluating 'history.getCurrentLocation')
  • Loading branch information
dualbootpt authored Dec 26, 2016
commit 55681b48f4a095c518c801599ec74df92668567c
6 changes: 3 additions & 3 deletions lessons/02-rendering-a-route/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ That's not going to display anything until we configure a route.

Open up `index.js` and

1. import `Router`, `Route`, and `hashHistory`
1. import `Router`, `Route`, and `browserHistory`
2. render a `Router` instead of `App`

```js
// ...
import { Router, Route, hashHistory } from 'react-router'

render((
<Router history={hashHistory}>
<Router history={browserHistory}>
<Route path="/" component={App}/>
</Router>
), document.getElementById('app'))
Expand Down Expand Up @@ -71,7 +71,7 @@ import About from './modules/About'
import Repos from './modules/Repos'

render((
<Router history={hashHistory}>
<Router history={browserHistory}>
<Route path="/" component={App}/>
{/* add the routes here */}
<Route path="/repos" component={Repos}/>
Expand Down