score:3

Accepted answer
<NavLink to="/" activeClassName="active">Link</NavLink>

score:1

onClick={()=>{toggleClass(i);}}

Related Query

More Query from same tag