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

Function toggle

stories/examples/Dropdown/SizingExample.js:11–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9function Example(props) {
10 const [dropdownOpen, setDropdownOpen] = useState(false);
11 const toggle = () => setDropdownOpen((prevState) => !prevState);
12
13 return (
14 <Dropdown isOpen={dropdownOpen} toggle={toggle} {...props}>

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…