Replies: 1 comment
-
You're almost there. The argument to the function is an ❌ You have this
✅ You want this
interface NavLinkProps {
// ... other props
style?:
| React.CSSProperties
| ((props: {
isActive: boolean;
}) => React.CSSProperties);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The documentation uses a property 'isActive', in NavLink, but it isn't working. I'm always getting the active state for all links that use this. I'm using version 6.2.2
Beta Was this translation helpful? Give feedback.
All reactions