H
H
Heretic Man2019-07-09 20:37:56
JavaScript
Heretic Man, 2019-07-09 20:37:56

How to implement a navigation menu with active links in next js?

We need the most banal and elementary example of how to implement a page navigation menu with the addition of the "active" class to the link if the page path matches the href of the link.
here is a large next js documentation https://nextjs.org/docs#with-url-object on routing, but I can’t figure out at least in which direction to move.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aves, 2019-07-10
@heretic_man

https://github.com/zeit/next.js/tree/canary/exampl...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question