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

Function toggle

stories/examples/ButtonDropdown.js:12–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 const [dropdownOpen, setOpen] = useState(false);
11
12 const toggle = () => setOpen(!dropdownOpen);
13
14 return (
15 <ButtonDropdown isOpen={dropdownOpen} toggle={toggle}>

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…