-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
activeClassName with class and className for Link #365
Comments
This is intended. |
@developit according to your comment, it is possible and allowed to use both Why just don't support both? And following this logic, the active class should be named |
@evenfrost TBH you're right, there's not really a good reason for preact-router should take a stance on this. I've opened #386 that implements both your suggestions ( |
* <Link>: allow `className` and `activeClass` props Fixes #365 * Update index.js
I find something interseting in the Link Component with the activeClassName
if the match route it will give the only the "className" class but if i change it to this
then it will give the "className" and "active" as its class.
Is this intended?
The text was updated successfully, but these errors were encountered: