diff --git a/lessons/07-more-nesting/index.js b/lessons/07-more-nesting/index.js index 95a876e5..ddc3f588 100644 --- a/lessons/07-more-nesting/index.js +++ b/lessons/07-more-nesting/index.js @@ -9,8 +9,9 @@ import Repo from './modules/Repo' render(( <Router history={hashHistory}> <Route path="/" component={App}> - <Route path="/repos" component={Repos}/> - <Route path="/repos/:userName/:repoName" component={Repo}/> + <Route path="/repos" component={Repos}> + <Route path="/repos/:userName/:repoName" component={Repo}/> + </Route> <Route path="/about" component={About}/> </Route> </Router> diff --git a/lessons/07-more-nesting/modules/Repos.js b/lessons/07-more-nesting/modules/Repos.js index 6393b667..bd4c9b82 100644 --- a/lessons/07-more-nesting/modules/Repos.js +++ b/lessons/07-more-nesting/modules/Repos.js @@ -10,6 +10,7 @@ export default React.createClass({ <li><Link to="/repos/reactjs/react-router">React Router</Link></li> <li><Link to="/repos/facebook/react">React</Link></li> </ul> + {this.props.children} </div> ) }