We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 396334e commit 732aa8bCopy full SHA for 732aa8b
lessons/01-setting-up/modules/App.js
@@ -7,7 +7,7 @@
7
// })
8
9
import React, { Component } from 'react';
10
-import { Link } from 'react-router';
+import { Link, IndexLink } from 'react-router';
11
import NavLink from './NavLink';
12
13
class App extends Component {
@@ -16,6 +16,7 @@ class App extends Component {
16
<div>
17
<h1>React Router Tutorial</h1>
18
<ul role='nav'>
19
+ <li><NavLink to='/' onlyActiveOnIndex={true}>Home</NavLink></li>
20
<li><NavLink to='/about'>About</NavLink></li>
21
<li><NavLink to='/repos'>Repos</NavLink></li>
22
</ul>
0 commit comments