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

Method constructor

src/UncontrolledAlert.js:5–10  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

3
4class UncontrolledAlert extends Component {
5 constructor(props) {
6 super(props);
7
8 this.state = { isOpen: true };
9 this.toggle = this.toggle.bind(this);
10 }
11
12 toggle() {
13 this.setState((prevState) => ({ isOpen: !prevState.isOpen }));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected