File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
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= {new 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= {new 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= {new 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}>
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ var Index = React.createClass({
106
106
} ) ;
107
107
108
108
React . render ( (
109
- < Router history = { new HashHistory ( ) } createElement = { AsyncProps . createElement } >
109
+ < Router history = { new HashHistory } createElement = { AsyncProps . createElement } >
110
110
< Route component = { AsyncProps } renderInitialLoad = { ( ) => < Spinner /> } >
111
111
< Route component = { App } >
112
112
< Route path = "/" component = { Index } />
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ var rootRoute = {
28
28
React . render ( (
29
29
< Router
30
30
routes = { rootRoute }
31
- history = { new HashHistory ( ) }
31
+ history = { new HashHistory }
32
32
createElement = { AsyncProps . createElement }
33
33
/>
34
34
) , document . getElementById ( 'example' ) ) ;
You can’t perform that action at this time.
0 commit comments