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

Method constructor

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

Source from the content-addressed store, hash-verified

1236class Example38 extends React.Component<any, any> {
1237 state: any;
1238 constructor(props: any) {
1239 super(props);
1240 this.onOpened = this.onOpened.bind(this);
1241 this.onClosed = this.onClosed.bind(this);
1242 this.toggle = this.toggle.bind(this);
1243 this.state = { collapse: false, status: 'Closed' };
1244 }
1245
1246 onOpened() {
1247 this.setState({ ...this.state, status: 'Opened' });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected