Skip to content

Commit

Permalink
Merge pull request reactjs#148 from ev1stensberg/update-readme
Browse files Browse the repository at this point in the history
Added information about spread attributes
  • Loading branch information
timdorr committed Apr 7, 2016
2 parents f37d946 + c3d1abd commit a19d7d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lessons/05-active-links/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ primary navigation links need to know. It's useful to wrap those so you
don't have to remember what your `activeClassName` or `activeStyle` is
everywhere.

We will use an spread attribute here, the three dots. It clones our props
and in this use case it clones `activeClassName` to our desired component for
us to benefit from.

Create a new file at `modules/NavLink.js` that looks like this:

```js
Expand Down

0 comments on commit a19d7d6

Please sign in to comment.