Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c3d1abd

Browse files
author
Even Stensberg
committed
Added information about spread attributes
Added some information about spread attributes in the docs
1 parent 78bb519 commit c3d1abd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lessons/05-active-links/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ primary navigation links need to know. It's useful to wrap those so you
5151
don't have to remember what your `activeClassName` or `activeStyle` is
5252
everywhere.
5353

54+
We will use an spread attribute here, the three dots. It clones our props
55+
and in this use case it clones `activeClassName` to our desired component for
56+
us to benefit from.
57+
5458
Create a new file at `modules/NavLink.js` that looks like this:
5559

5660
```js

0 commit comments

Comments
 (0)