Skip to content

Commit 14811cb

Browse files
committed
Implementation for the indexLinks, lesson-09
1 parent 97437ad commit 14811cb

File tree

2 files changed

+4947
-0
lines changed

2 files changed

+4947
-0
lines changed

lessons/09-index-links/modules/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import React from 'react'
22
import NavLink from './NavLink'
3+
import { IndexLink } from 'react-router'
34

45
export default React.createClass({
56
render() {
67
return (
78
<div>
89
<h1>React Router Tutorial</h1>
910
<ul role="nav">
11+
<li><NavLink to="/" onlyActiveOnIndex={true}>Home</NavLink></li>
1012
<li><NavLink to="/about">About</NavLink></li>
1113
<li><NavLink to="/repos">Repos</NavLink></li>
1214
</ul>

0 commit comments

Comments
 (0)