what is the difference between html tag \"/href\" and navlink provided by react-router to navigate the page? I can use both in order to navigate page to the different URL, s
When you need to use style or class attributes on active , then you can use navlink
Let see the example:
Link
a primary way to allow users to navigate around your application. will render a fully accessible anchor tag with the proper href.
Home
NavLink
A special version of the that will add styling attributes to the rendered element when it matches the current URL.
Home