Skip to content

Commit 76fd3c9

Browse files
committed
Merge pull request reactjs#118 from artyomtrityak/master
Add boolean variable definition
2 parents 1f16858 + e95693e commit 76fd3c9

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
@@ -42,7 +42,7 @@ We can use `Link` as well by passing it the `onlyActiveOnIndex` prop
4242
(`IndexLink` just wraps `Link` with this property for convenience).
4343

4444
```js
45-
<li><Link to="/" activeClassName="active" onlyActiveOnIndex>Home</Link></li>
45+
<li><Link to="/" activeClassName="active" onlyActiveOnIndex={true}>Home</Link></li>
4646
```
4747

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

5555
```js
56-
<li><NavLink to="/" onlyActiveOnIndex>Home</NavLink></li>
56+
<li><NavLink to="/" onlyActiveOnIndex={true}>Home</NavLink></li>
5757
```
5858

5959
---

0 commit comments

Comments
 (0)