Aktive Link Farbe unterschiedlich in React JS
instead of <Link> use <NavLink>
<NavLink to="/" activeStyle={{color: "red",textDecoration:"none"}} />
Adventurous Addax
instead of <Link> use <NavLink>
<NavLink to="/" activeStyle={{color: "red",textDecoration:"none"}} />
Example :
<NavLink to={link} activeClassName={class name } exact >{children}</NavLink>