Skip to content

Commit 8b1a278

Browse files
committed
Merge pull request #1339 from gmaclennan/patch-1
fix docs history={HashHistory}
2 parents d42b80e + 2b86a88 commit 8b1a278

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/00 Guides/0 Overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ var App = React.createClass({
141141
// Finally we render a `Router` component with some `Route`s, it'll do all
142142
// the fancy routing stuff for us.
143143
React.render((
144-
<Router history={HashHistory}>
144+
<Router history={new HashHistory()}>
145145
<Route path="/" component={App}>
146146
<Route path="about" component={About}/>
147147
<Route path="inbox" component={Inbox}/>
@@ -162,7 +162,7 @@ var routes = {
162162
]
163163
};
164164

165-
React.render(<Router history={HashHistory} children={routes}/>, document.body):
165+
React.render(<Router history={new HashHistory()} children={routes}/>, document.body):
166166
```
167167

168168
Adding more UI
@@ -191,7 +191,7 @@ var Inbox = React.createClass({
191191
});
192192

193193
React.render((
194-
<Router history={HashHistory}>
194+
<Router history={new HashHistory()}>
195195
<Route component={App}>
196196
<Route path="about" component={About}/>
197197
<Route path="inbox" component={Inbox}>

0 commit comments

Comments
 (0)