MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / Example

Function Example

stories/examples/Dropdown/SetActiveFromChild.js:13–35  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

11} from 'reactstrap';
12
13export default function Example(args) {
14 return (
15 <Navbar color="light" light expand="md">
16 <Nav className="ms-auto" navbar>
17 <NavItem>
18 <NavLink href="#" disabled>
19 Inactive Link
20 </NavLink>
21 </NavItem>
22 <UncontrolledDropdown setActiveFromChild>
23 <DropdownToggle tag="a" className="nav-link" caret>
24 Dropdown
25 </DropdownToggle>
26 <DropdownMenu>
27 <DropdownItem tag="a" href="#" active>
28 Link
29 </DropdownItem>
30 </DropdownMenu>
31 </UncontrolledDropdown>
32 </Nav>
33 </Navbar>
34 );
35}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…