react app how to highlight active link code example
Example: active link color different in react js
instead of <Link> use <NavLink>
<NavLink to="/" activeStyle={{color: "red",textDecoration:"none"}} />
instead of <Link> use <NavLink>
<NavLink to="/" activeStyle={{color: "red",textDecoration:"none"}} />