Skip to content

Commit 698db50

Browse files
committed
Update examples
1 parent 5f17eb9 commit 698db50

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

examples/animations/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ var Page2 = React.createClass({
4646

4747

4848
React.render((
49-
<Router history={HashHistory}>
49+
<Router history={new HashHistory}>
5050
<Route path="/" component={App}>
5151
<Route path="page1" component={Page1} />
5252
<Route path="page2" component={Page2} />

examples/async-data/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ var Index = React.createClass({
103103
});
104104

105105
React.render((
106-
<Router history={HashHistory} createElement={AsyncProps.createElement}>
106+
<Router history={new HashHistory} createElement={AsyncProps.createElement}>
107107
<Route path="/" component={App} indexComponent={Index}>
108108
<Route path="contact/:id" component={Contact}/>
109109
</Route>

examples/dynamic-segments/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var Task = React.createClass({
4747
});
4848

4949
React.render((
50-
<Router history={HashHistory}>
50+
<Router history={new HashHistory}>
5151
<Route path="/" component={App}>
5252
<Route path="user/:userID" component={User}>
5353
<Route path="tasks/:taskID" component={Task}/>

examples/huge-apps/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var rootRoute = {
2121
React.render((
2222
<Router
2323
children={rootRoute}
24-
history={HashHistory}
24+
history={new HashHistory}
2525
createElement={AsyncProps.createElement}
2626
/>
2727
), document.getElementById('example'));

examples/master-detail/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ var NotFound = React.createClass({
150150
});
151151

152152
React.render((
153-
<Router history={HashHistory}>
153+
<Router history={new HashHistory}>
154154
<Route path="/" component={App} indexComponent={Index}>
155155
<Route path="contact/new" component={NewContact}/>
156156
<Route path="contact/:id" component={Contact}/>

examples/query-params/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var App = React.createClass({
3232
});
3333

3434
React.render((
35-
<Router history={HashHistory}>
35+
<Router history={new HashHistory}>
3636
<Route path="/" component={App}>
3737
<Route path="user/:userID" component={User}/>
3838
</Route>

examples/shared-root/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ var ForgotPassword = React.createClass({
7070
});
7171

7272
React.render((
73-
<Router history={HashHistory}>
73+
<Router history={new HashHistory}>
7474
<Route path="/" component={App}>
7575
<Route component={SignedOut}>
7676
<Route path="signin" component={SignIn}/>

examples/sidebar/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ var App = React.createClass({
9393
});
9494

9595
React.render((
96-
<Router history={HashHistory}>
96+
<Router history={new HashHistory}>
9797
<Route path="/" component={App}>
9898
<Route path="category/:category" components={{content: Category, sidebar: CategorySidebar}}>
9999
<Route path=":item" component={Item}/>

examples/transitions/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var Form = React.createClass({
5757
});
5858

5959
React.render((
60-
<Router history={HashHistory}>
60+
<Router history={new HashHistory}>
6161
<Route path="/" component={App}>
6262
<Route path="dashboard" component={Dashboard}/>
6363
<Route path="form" component={Form}/>

0 commit comments

Comments
 (0)