Skip to content

Commit 277ba50

Browse files
committed
remove references to indexComponent
1 parent 7969985 commit 277ba50

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/async-data/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ var Index = React.createClass({
104104

105105
React.render((
106106
<Router history={new HashHistory} createElement={AsyncProps.createElement}>
107-
<Route path="/" component={App} indexComponent={Index}>
107+
<Route component={App}>
108+
<Route path="/" component={Index}>
108109
<Route path="contact/:id" component={Contact}/>
109110
</Route>
110111
</Router>

examples/master-detail/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ var NotFound = React.createClass({
151151

152152
React.render((
153153
<Router history={new HashHistory}>
154-
<Route path="/" component={App} indexComponent={Index}>
154+
<Route component={App}>
155+
<Route path="/" component={Index}/>
155156
<Route path="contact/new" component={NewContact}/>
156157
<Route path="contact/:id" component={Contact}/>
157158
<Route path="*" component={NotFound}/>

0 commit comments

Comments
 (0)