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

Function toggle

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

Source from the content-addressed store, hash-verified

5 const [dropdownOpen, setDropdownOpen] = useState(false);
6
7 const toggle = () => setDropdownOpen((prevState) => !prevState);
8
9 return (
10 <Dropdown 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…