Skip to content

Commit

Permalink
Merge pull request remix-run#2060 from hgezim/patch-1
Browse files Browse the repository at this point in the history
Fixed <Link> example
  • Loading branch information
knowbody committed Sep 23, 2015
2 parents febab4e + a1bc995 commit 08ada07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ You can also pass props you'd like to be on the `<a>` such as a title, id, class
Given a route like `<Route path="/users/:userId"/>`:

```js
<Link to={`/users/${user.id}`}>{user.name}</Link>
<Link to={`/users/${user.id}`} activeClassName="active">{user.name}</Link>
// becomes one of these depending on your History and if the route is
// active
<a href="/users/123" class="active">Michael</a>
Expand Down

0 comments on commit 08ada07

Please sign in to comment.