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

Commit c3d1abd

Browse files
author
Even Stensberg
committedApr 4, 2016
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

+4
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)
This repository has been archived.