File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
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= {history () }>
144
+ < Router history= {history}>
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= {history () } children= {routes}/ > , document .body );
165
+ React .render (< Router history= {history} 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= {history () }>
194
+ < Router history= {history}>
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 @@ -4,7 +4,7 @@ an instance of one with your own options for query parsing.
4
4
5
5
``` js
6
6
import { history } from ' react-router/lib/BrowserHistory' ;
7
- < Router history= {history () }/ >
7
+ < Router history= {history}/ >
8
8
```
9
9
10
10
If you need to do your own query parsing:
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ import { Router } from 'react-router';
46
46
import { history } from ' react-router/lib/BrowserHistory' ;
47
47
48
48
React .render ((
49
- < Router history= { history () }>
49
+ < Router history= { history }>
50
50
{/* ... */ }
51
51
< / Router>
52
52
), document .body );
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ import { Router } from 'react-router';
36
36
import { history } from ' react-router/lib/HashHistory' ;
37
37
38
38
React .render ((
39
- < Router history= {history () }>
39
+ < Router history= {history}>
40
40
{/* ... */ }
41
41
< / Router>
42
42
), document .body );
You can’t perform that action at this time.
0 commit comments