is there any case where using just <Link />
is more suitable than <NavLink/>
?
in other words, why does react-router provide a <Link />
component if there is a <NavLink/>
there?
Thanks
is there any case where using just <Link />
is more suitable than <NavLink/>
?
in other words, why does react-router provide a <Link />
component if there is a <NavLink/>
there?
Thanks
I think they mention it properly on their doc:
A special version of the
<Link>
that will add styling attributes to the rendered element when it matches the current URL.