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

Function toggle

stories/examples/Modal/FocusAfterCloseExample.js:17–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 const [focusAfterClose, setFocusAfterClose] = useState(true);
16
17 const toggle = () => setOpen(!open);
18 const handleSelectChange = ({ target: { value } }) => {
19 setFocusAfterClose(JSON.parse(value));
20 };

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…