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

Method constructor

src/UncontrolledCollapse.js:27–35  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

25
26class UncontrolledCollapse extends Component {
27 constructor(props) {
28 super(props);
29
30 this.togglers = null;
31 this.removeEventListeners = null;
32 this.toggle = this.toggle.bind(this);
33
34 this.state = { isOpen: props.defaultOpen || false };
35 }
36
37 componentDidMount() {
38 this.togglers = findDOMElements(this.props.toggler);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected