Skip to content

Commit ea4829a

Browse files
committed
add import IndexLink for clarity
1 parent 2b9366a commit ea4829a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lessons/09-index-links.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ index route is rendered.
2626
First lets use the `IndexLink`
2727

2828
```js
29+
// in App.js
30+
// new imports
31+
// add `IndexLink` to 'react-router' imports
32+
import { IndexLink } from 'react-router'
33+
34+
// replace <li><NavLink to="/">Home</NavLink></li> with
2935
<li><IndexLink to="/" activeClassName="active">Home</IndexLink></li>
3036
```
3137

@@ -55,4 +61,3 @@ a `NavLink` and it will make its way down to the `Link`:
5561
---
5662

5763
[Next: Clean URLs](10-clean-urls.md)
58-

0 commit comments

Comments
 (0)