making nav bar link active in react without react router code example
Example 1: why navlink in react router always active
<li> <NavLink exact to='/' activeClassName="active-link">Home</NavLink> </li>
Example 2: why navlink in react router always active
<li> <NavLink to='/' activeClassName="active-link" isActive={checkActive}>Home</NavLink> </li>