File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ We can use `Link` as well by passing it the `onlyActiveOnIndex` prop
38
38
(` IndexLink ` just wraps ` Link ` with this property for convenience).
39
39
40
40
``` js
41
- < li>< Link to= " /" activeClassName= " active" onlyActiveOnIndex> Home< / Link>< / li>
41
+ < li>< Link to= " /" activeClassName= " active" onlyActiveOnIndex= { true } > Home< / Link>< / li>
42
42
```
43
43
44
44
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
49
49
a ` NavLink ` and it will make its way down to the ` Link ` :
50
50
51
51
``` js
52
- < li>< NavLink to= " /" onlyActiveOnIndex> Home< / NavLink>< / li>
52
+ < li>< NavLink to= " /" onlyActiveOnIndex= { true } > Home< / NavLink>< / li>
53
53
```
54
54
55
55
---
You can’t perform that action at this time.
0 commit comments