Skip to content

Commit a19d7d6

Browse files
committed
Merge pull request reactjs#148 from ev1stensberg/update-readme
Added information about spread attributes
2 parents f37d946 + c3d1abd commit a19d7d6

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)