Skip to content

Commit 732aa8b

Browse files
committed
lessons 09 finish
1 parent 396334e commit 732aa8b

File tree

1 file changed

+2
-1
lines changed
  • lessons/01-setting-up/modules

1 file changed

+2
-1
lines changed

lessons/01-setting-up/modules/App.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// })
88

99
import React, { Component } from 'react';
10-
import { Link } from 'react-router';
10+
import { Link, IndexLink } from 'react-router';
1111
import NavLink from './NavLink';
1212

1313
class App extends Component {
@@ -16,6 +16,7 @@ class App extends Component {
1616
<div>
1717
<h1>React Router Tutorial</h1>
1818
<ul role='nav'>
19+
<li><NavLink to='/' onlyActiveOnIndex={true}>Home</NavLink></li>
1920
<li><NavLink to='/about'>About</NavLink></li>
2021
<li><NavLink to='/repos'>Repos</NavLink></li>
2122
</ul>

0 commit comments

Comments
 (0)