Skip to content

[Navigation Menu] What is the proper way to use with next/link #1260

Discussion options

You must be logged in to vote

Hi @DanielBailey-web,

I haven't played much with next, but from what I understand looking at the docs, you are doing the right thing and passHref is needed because NavLink is a custom component that wraps a a.

Source:
https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-custom-component-that-wraps-an-a-tag

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@DanielBailey-web
Comment options

@benoitgrelard
Comment options

Answer selected by DanielBailey-web
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@joaom00
Comment options

@j0hnm4r5
Comment options

@joaom00
Comment options

@Migggz
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
7 participants