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

Function constructor

src/UncontrolledPopover.js:9–14  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

7
8export default class UncontrolledPopover extends Component {
9 constructor(props) {
10 super(props);
11
12 this.state = { isOpen: props.defaultOpen || false };
13 this.toggle = this.toggle.bind(this);
14 }
15
16 toggle() {
17 this.setState((prevState) => ({ isOpen: !prevState.isOpen }));

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…