isActive style in react-router v.6
In react-router-dom v6 the isActive is a prop value destructured from a function passed to either of the children, className, and style NavLink props. NavLink interface NavLinkProps extends Omit< LinkProps, “className” | “style” | “children” > { caseSensitive?: boolean; children?: | React.ReactNode | ((props: { isActive: boolean }) => React.ReactNode); className?: | string | ((props: … Read more