nav.link code example
Example 1: navlink
<NavLink to="/about">About</NavLink>
Example 2: NavLink
<NavLink to="/faq" activeClassName="selected">
FAQs
</NavLink>
<NavLink to="/about">About</NavLink>
<NavLink to="/faq" activeClassName="selected">
FAQs
</NavLink>