Skip to content

Commit

Permalink
Revert "Updated README Link import" (#311)
Browse files Browse the repository at this point in the history
This reverts commit e195068.

activeClassName requires Link to be imported from match.js
  • Loading branch information
Alexendoo authored and developit committed Oct 18, 2019
1 parent f7dbe6d commit 113ea77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ render(
`<Link>` is just a normal link, but it automatically adds and removes an "active" classname to itself based on whether it matches the current URL.

```js
import { Router, Link } from 'preact-router';
import { Router } from 'preact-router';
import { Link } from 'preact-router/match';

render(
<div>
Expand Down

0 comments on commit 113ea77

Please sign in to comment.