Skip to content

Commit e95693e

Browse files
committed
Add boolean variable definition
1 parent 4bd1969 commit e95693e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lessons/09-index-links/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ We can use `Link` as well by passing it the `onlyActiveOnIndex` prop
3838
(`IndexLink` just wraps `Link` with this property for convenience).
3939

4040
```js
41-
<li><Link to="/" activeClassName="active" onlyActiveOnIndex>Home</Link></li>
41+
<li><Link to="/" activeClassName="active" onlyActiveOnIndex={true}>Home</Link></li>
4242
```
4343

4444
That's fine, but we already abstracted away having to know what the
@@ -49,7 +49,7 @@ the `{...spread}` syntax, so we can actually add the prop when we render
4949
a `NavLink` and it will make its way down to the `Link`:
5050

5151
```js
52-
<li><NavLink to="/" onlyActiveOnIndex>Home</NavLink></li>
52+
<li><NavLink to="/" onlyActiveOnIndex={true}>Home</NavLink></li>
5353
```
5454

5555
---

0 commit comments

Comments
 (0)