File tree Expand file tree Collapse file tree 9 files changed +9
-9
lines changed Expand file tree Collapse file tree 9 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ var Page2 = React.createClass({
46
46
47
47
48
48
React . render ( (
49
- < Router history = { HashHistory } >
49
+ < Router history = { new HashHistory } >
50
50
< Route path = "/" component = { App } >
51
51
< Route path = "page1" component = { Page1 } />
52
52
< Route path = "page2" component = { Page2 } />
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ var Index = React.createClass({
103
103
} ) ;
104
104
105
105
React . render ( (
106
- < Router history = { HashHistory } createElement = { AsyncProps . createElement } >
106
+ < Router history = { new HashHistory } createElement = { AsyncProps . createElement } >
107
107
< Route path = "/" component = { App } indexComponent = { Index } >
108
108
< Route path = "contact/:id" component = { Contact } />
109
109
</ Route >
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ var Task = React.createClass({
47
47
} ) ;
48
48
49
49
React . render ( (
50
- < Router history = { HashHistory } >
50
+ < Router history = { new HashHistory } >
51
51
< Route path = "/" component = { App } >
52
52
< Route path = "user/:userID" component = { User } >
53
53
< Route path = "tasks/:taskID" component = { Task } />
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ var rootRoute = {
21
21
React . render ( (
22
22
< Router
23
23
children = { rootRoute }
24
- history = { HashHistory }
24
+ history = { new HashHistory }
25
25
createElement = { AsyncProps . createElement }
26
26
/>
27
27
) , document . getElementById ( 'example' ) ) ;
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ var NotFound = React.createClass({
150
150
} ) ;
151
151
152
152
React . render ( (
153
- < Router history = { HashHistory } >
153
+ < Router history = { new HashHistory } >
154
154
< Route path = "/" component = { App } indexComponent = { Index } >
155
155
< Route path = "contact/new" component = { NewContact } />
156
156
< Route path = "contact/:id" component = { Contact } />
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ var App = React.createClass({
32
32
} ) ;
33
33
34
34
React . render ( (
35
- < Router history = { HashHistory } >
35
+ < Router history = { new HashHistory } >
36
36
< Route path = "/" component = { App } >
37
37
< Route path = "user/:userID" component = { User } />
38
38
</ Route >
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ var ForgotPassword = React.createClass({
70
70
} ) ;
71
71
72
72
React . render ( (
73
- < Router history = { HashHistory } >
73
+ < Router history = { new HashHistory } >
74
74
< Route path = "/" component = { App } >
75
75
< Route component = { SignedOut } >
76
76
< Route path = "signin" component = { SignIn } />
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ var App = React.createClass({
93
93
} ) ;
94
94
95
95
React . render ( (
96
- < Router history = { HashHistory } >
96
+ < Router history = { new HashHistory } >
97
97
< Route path = "/" component = { App } >
98
98
< Route path = "category/:category" components = { { content : Category , sidebar : CategorySidebar } } >
99
99
< Route path = ":item" component = { Item } />
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ var Form = React.createClass({
57
57
} ) ;
58
58
59
59
React . render ( (
60
- < Router history = { HashHistory } >
60
+ < Router history = { new HashHistory } >
61
61
< Route path = "/" component = { App } >
62
62
< Route path = "dashboard" component = { Dashboard } />
63
63
< Route path = "form" component = { Form } />
You can’t perform that action at this time.
0 commit comments