|
@@ -1,5 +1,5 @@
|
|
|
import React from 'react'
|
|
|
-import { Link } from 'react-router'
|
|
|
+import NavLink from './NavLink'
|
|
|
|
|
|
export default React.createClass({
|
|
|
render() {
|
|
@@ -7,9 +7,10 @@ export default React.createClass({
|
|
|
<div>
|
|
|
<h2>Repos</h2>
|
|
|
<ul>
|
|
|
- <li><Link to="/repos/rackt/react-router">React Router</Link></li>
|
|
|
- <li><Link to="/repos/facebook/react">React</Link></li>
|
|
|
+ <li><NavLink to="/repos/rackt/react-router">React Router</NavLink></li>
|
|
|
+ <li><NavLink to="/repos/facebook/react">React</NavLink></li>
|
|
|
</ul>
|
|
|
+ {this.props.children}
|
|
|
</div>
|
|
|
)
|
|
|
}
|