The Startup
Published in

The Startup

Using React Router <NavLink> to Specify Which Element in a Navigation Bar Is Active

The React Router DOM package gives us <NavLink> and <Link> components. This blog post will cover the difference between the two components and how <NavLink> can be used to specify the link that is active in an application’s navigation bar.

Both <NavLink> and <Link> components can be used to define and design a declarative…

--

--

Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +768K followers.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store