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

Function toggle

src/UncontrolledDropdown.js:16–25  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

14 }
15
16 toggle(e) {
17 this.setState(
18 (prevState) => ({ isOpen: !prevState.isOpen }),
19 () => {
20 if (this.props.onToggle) {
21 this.props.onToggle(e, this.state.isOpen);
22 }
23 },
24 );
25 }
26
27 render() {
28 return (

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…