The Link component requires a href; that is its API. If you can't provide one, then do not use the Link. Otherwise, use a the URI fragment # as your href
Dec 17, 2024
5
Level 6
Link component still renders href even if it's empty
<Link data-bs-toggle="collapse" role="button">Dropdown</Link>
This snippet still renders an anchor tag with href. Adding null or undefined doesn't work. I'm getting missing required prop warning. Is there a solution for this? I don't want to use any other tags for consistency.
Please or to participate in this conversation.