Skip to content

Commit 5f745c0

Browse files
committed
Use a hashHistory on the intro
So beginners don't get tripped up by a mis-configured server off the bat. Fixes #2825
1 parent 004be6b commit 5f745c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/Introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ import React from 'react'
106106
import { render } from 'react-dom'
107107

108108
// First we import some modules...
109-
import { Router, Route, IndexRoute, Link, browserHistory } from 'react-router'
109+
import { Router, Route, IndexRoute, Link, hashHistory } from 'react-router'
110110

111111
// Then we delete a bunch of code from App and
112112
// add some <Link> elements...
@@ -134,7 +134,7 @@ const App = React.createClass({
134134
// Finally, we render a <Router> with some <Route>s.
135135
// It does all the fancy routing stuff for us.
136136
render((
137-
<Router history={browserHistory}>
137+
<Router history={hashHistory}>
138138
<Route path="/" component={App}>
139139
<IndexRoute component={Home} />
140140
<Route path="about" component={About} />

0 commit comments

Comments
 (0)