Closed
Description
I'd like to combine react-bootstrap with react-nested-router
.
e.g. defining a navbar looks like this:
var navbarInstance = (
<Navbar>
<Nav>
<NavItem key={1} href="#">Link</NavItem>
<NavItem key={2} href="#">Link</NavItem>
<DropdownButton key={3} title="Dropdown">
<MenuItem key="1">Action</MenuItem>
<MenuItem key="2">Another action</MenuItem>
<MenuItem key="3">Something else here</MenuItem>
<MenuItem divider />
<MenuItem key="4">Separated link</MenuItem>
</DropdownButton>
</Nav>
</Navbar>
);
The problem here is that NavItem
renders to an <li>
element with an <a>
tag. Do you have an Idea how I can tell the NavItem
that it should use the Link
class of react-nested-router
?
Metadata
Metadata
Assignees
Labels
No labels