Hello I am a beginner getting started with React Router -v^6.2.2, and generated the basic sources with create-react-app on template typescript -v4.6.2.
It works but I have this error on my console Visual studio code.
I have a problem on exact and activeClassName on the tag NavLink.
Error message:
"Type '{ children: string; className: string; activeClassName: string; exact: true; to: string; }' is not assignable to type 'IntrinsicAttributes & NavLinkProps & RefAttributes'. Property 'activeClassName' does not exist on type 'IntrinsicAttributes & NavLinkProps & RefAttributes'. "
import { NavLink } from "react-router-dom"; import '../styles/styles-pages/navigation.scss'
export const Navigation = () => { return ( Home Discution ) }