React Router
NavLink
Navigation link with active matching information and current-page semantics.
Formal Syntax & Structure
react syntaxreact
<NavLink to="/trails">Trails</NavLink>Working Example
Example Snippetreact
<NavLink to="/" end>Home</NavLink>