We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ea1d06 commit f268536Copy full SHA for f268536
imgur-client/src/app.jsx
@@ -14,7 +14,10 @@ var Hello = React.createClass({
14
15
var Child1 = React.createClass({
16
render: function() {
17
- return <h1>I'm child1</h1>
+ return <h1>
18
+ I'm child1
19
+ {this.props.children}
20
+ </h1>
21
}
22
});
23
@@ -27,7 +30,9 @@ var Child2 = React.createClass({
27
30
var routes = (
28
31
<Router history={new HashHistory}>
29
32
<Route path="/" component={Hello}>
- <Route path="1" component={Child1} />
33
+ <Route path="1" component={Child1}>
34
+ <Route path="2" component={Child2} />
35
+ </Route>
36
<Route path="2" component={Child2} />
37
</Route>
38
</Router>
0 commit comments