File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ var App = React.createClass({
141
141
// Finally we render a `Router` component with some `Route`s, it'll do all
142
142
// the fancy routing stuff for us.
143
143
React .render ((
144
- < Router history= {HashHistory}>
144
+ < Router history= {new HashHistory () }>
145
145
< Route path= " /" component= {App}>
146
146
< Route path= " about" component= {About}/ >
147
147
< Route path= " inbox" component= {Inbox}/ >
@@ -162,7 +162,7 @@ var routes = {
162
162
]
163
163
};
164
164
165
- React .render (< Router history= {HashHistory} children= {routes}/ > , document .body ):
165
+ React .render (< Router history= {new HashHistory () } children= {routes}/ > , document .body ):
166
166
```
167
167
168
168
Adding more UI
@@ -191,7 +191,7 @@ var Inbox = React.createClass({
191
191
});
192
192
193
193
React .render ((
194
- < Router history= {HashHistory}>
194
+ < Router history= {new HashHistory () }>
195
195
< Route component= {App}>
196
196
< Route path= " about" component= {About}/ >
197
197
< Route path= " inbox" component= {Inbox}>
You can’t perform that action at this time.
0 commit comments