Skip to content

Commit a1bc995

Browse files
hgezimGezim Hoxha
authored andcommitted
Fixed Link example
1 parent febab4e commit a1bc995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ You can also pass props you'd like to be on the `<a>` such as a title, id, class
118118
Given a route like `<Route path="/users/:userId"/>`:
119119

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

0 commit comments

Comments
 (0)