Skip to content

Commit 90863bb

Browse files
committed
Lesson 04 Final
1 parent 6ad2491 commit 90863bb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ import Repos from './modules/Repos'
77

88
render((
99
<Router history={hashHistory}>
10-
<Route path="/" component={App}/>
11-
<Route path="/repos" component={Repos}/>
12-
<Route path="/about" component={About}/>
10+
<Route path="/" component={App}>
11+
<Route path="/repos" component={Repos}/>
12+
<Route path="/about" component={About}/>
13+
</Route>
1314
</Router>
1415
), document.getElementById('app'))
1516

modules/App.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default React.createClass({
1010
<li><Link to="/about">About</Link></li>
1111
<li><Link to="/repos">Repos</Link></li>
1212
</ul>
13+
{this.props.children}
1314
</div>
1415
)
1516
}

0 commit comments

Comments
 (0)