(props)
| 3 | |
| 4 | class 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 })); |
nothing calls this directly
no outgoing calls
no test coverage detected