|
@@ -1,4 +1,5 @@
|
|
|
import { Link } from "react-router";
|
|
|
+import NavLink from './NavLink';
|
|
|
import React from "react";
|
|
|
|
|
|
export default React.createClass({
|
|
@@ -8,8 +9,8 @@ export default React.createClass({
|
|
|
<h1>React router tutorial</h1>
|
|
|
<ul role="nav">
|
|
|
<li><Link to="/">Home</Link></li>
|
|
|
- <li><Link to="/about">About</Link></li>
|
|
|
- <li><Link to="/repos">Repos</Link></li>
|
|
|
+ <li><NavLink to="/about">About</NavLink></li>
|
|
|
+ <li><NavLink to="/repos">Repos</NavLink></li>
|
|
|
</ul>
|
|
|
{ this.props.children }
|
|
|
</div>
|