Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Add boolean variable definition #118

Merged
merged 1 commit into from
Mar 29, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lessons/09-index-links/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ We can use `Link` as well by passing it the `onlyActiveOnIndex` prop
(`IndexLink` just wraps `Link` with this property for convenience).

```js
<li><Link to="/" activeClassName="active" onlyActiveOnIndex>Home</Link></li>
<li><Link to="/" activeClassName="active" onlyActiveOnIndex={true}>Home</Link></li>
```

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

```js
<li><NavLink to="/" onlyActiveOnIndex>Home</NavLink></li>
<li><NavLink to="/" onlyActiveOnIndex={true}>Home</NavLink></li>
```

---
Expand Down