Closed IdkGoodName closed 1 year ago
This fixes "activeClassName" not being added when <Link>'s href property and current URL match, as well as adds "activeClass" property.
<Link>
href
I am not sure whether "activeClass" should be documented in README or anywhere else.
I believe this is intentional, use import { Link } from 'preact-router/match'; instead when you want this behavior.
import { Link } from 'preact-router/match';
Implemented here
Docs showing preact-router/match here
preact-router/match
This fixes "activeClassName" not being added when
<Link>
'shref
property and current URL match, as well as adds "activeClass" property.I am not sure whether "activeClass" should be documented in README or anywhere else.