Nextjs active link tag
Unanswered
Mhamad Othman posted this in #help-forum
How to use active class with anchor tags in nextjs?! , use pathname doesn't give you the #id string it only gives me the /
2 Replies
@Mhamad Othman How to use active class with anchor tags in nextjs?! , use pathname doesn't give you the #id string it only gives me the /
You can check for window.location.hash as well
The same way you use usePathname