Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

missing this.props.children #250

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lessons/07-more-nesting/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions lessons/07-more-nesting/modules/Repos.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
)
}
Expand Down