In Gatsby, you using the
<Link> component to create links to other pages on your Gatsby site.
It's fairly common to highlight the currently active page in a site navigation bar, to show a visitor where in the navigation they are. Gatsby's
<Link> component provides a built-in way to style a link that points to the current page.
Add CSS to the currently active class
Add a CSS class to the currently active link
Follow my twitter (@benborgers)
to see the work-in-progress of coding projects I’m working on!