What is the correct way to create a link in a NavDropdown?
- version
4.3.0
- components:
NavDropdown, DropdownItem
Is there a better way to create dropdown menu items in a navigation than doing onClick={() => window.location.href = "/somewhere"}?
It seems like in the context of a nav you would want the items to render as an <a></a> rather than a <button></button>. Maybe a NavDropdownItem?
Steps to reproduce issue
https://codepen.io/marcdel/pen/aJYwQR
What is the correct way to create a link in a NavDropdown?
4.3.0NavDropdown,DropdownItemIs there a better way to create dropdown menu items in a navigation than doing
onClick={() => window.location.href = "/somewhere"}?It seems like in the context of a nav you would want the items to render as an
<a></a>rather than a<button></button>. Maybe aNavDropdownItem?Steps to reproduce issue
https://codepen.io/marcdel/pen/aJYwQR