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

Method constructor

types/reactstrap-tests.tsx:1201–1205  ·  view source on GitHub ↗
(props: any)

Source from the content-addressed store, hash-verified

1199class Example37 extends React.Component<any, any> {
1200 state: any;
1201 constructor(props: any) {
1202 super(props);
1203 this.toggle = this.toggle.bind(this);
1204 this.state = { collapse: false };
1205 }
1206
1207 toggle() {
1208 this.setState({ collapse: !this.state.collapse });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected