We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
preact-router
1 parent 0b057bc commit 755a5e0Copy full SHA for 755a5e0
src/match.js
@@ -1,5 +1,5 @@
1
import { h, Component } from 'preact';
2
-import { subscribers, getCurrentUrl } from 'preact-router';
+import { subscribers, getCurrentUrl, Link as StaticLink } from 'preact-router';
3
4
export class Match extends Component {
5
update = url => {
@@ -27,7 +27,7 @@ export class Match extends Component {
27
export const Link = ({ activeClassName, path, ...props }) => (
28
<Match path={path || props.href}>
29
{ ({ matches }) => (
30
- <a {...props} class={[props.class || props.className, matches && activeClassName].filter(Boolean).join(' ')} />
+ <StaticLink {...props} class={[props.class || props.className, matches && activeClassName].filter(Boolean).join(' ')} />
31
) }
32
</Match>
33
);
0 commit comments