Skip to content

Commit 0b78745

Browse files
committed
Merge pull request #1421 from johanneslumpe/examples-fixes
Removed parentheses after `new Hashhistory`
2 parents d97fba3 + dee0eda commit 0b78745

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

doc/00 Guides/0 Overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ var App = React.createClass({
141141
// Finally we render a `Router` component with some `Route`s, it'll do all
142142
// the fancy routing stuff for us.
143143
React.render((
144-
<Router history={new HashHistory()}>
144+
<Router history={new HashHistory}>
145145
<Route path="/" component={App}>
146146
<Route path="about" component={About}/>
147147
<Route path="inbox" component={Inbox}/>
@@ -162,7 +162,7 @@ var routes = {
162162
]
163163
};
164164

165-
React.render(<Router history={new HashHistory()} children={routes}/>, document.body);
165+
React.render(<Router history={new HashHistory} children={routes}/>, document.body);
166166
```
167167

168168
Adding more UI
@@ -191,7 +191,7 @@ var Inbox = React.createClass({
191191
});
192192

193193
React.render((
194-
<Router history={new HashHistory()}>
194+
<Router history={new HashHistory}>
195195
<Route component={App}>
196196
<Route path="about" component={About}/>
197197
<Route path="inbox" component={Inbox}>

examples/async-data/app.js

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

108108
React.render((
109-
<Router history={new HashHistory()} createElement={AsyncProps.createElement}>
109+
<Router history={new HashHistory} createElement={AsyncProps.createElement}>
110110
<Route component={AsyncProps} renderInitialLoad={() => <Spinner/> }>
111111
<Route component={App}>
112112
<Route path="/" component={Index}/>

examples/huge-apps/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var rootRoute = {
2828
React.render((
2929
<Router
3030
routes={rootRoute}
31-
history={new HashHistory()}
31+
history={new HashHistory}
3232
createElement={AsyncProps.createElement}
3333
/>
3434
), document.getElementById('example'));

0 commit comments

Comments
 (0)