score:0

/* a, a:hover {
  color: black;
} */

a.active {
  color: red;
}

score:0

.active {
  color: red;
}

score:0

<NavLink
  to="users"
  className={({ isActive }) =>
    isActive ? 'bg-green-500 font-bold' : 'bg-red-500 font-thin'
  }
>
  Users
</NavLink>

Related Query

More Query from same tag