(props)
| 7 | |
| 8 | export default class UncontrolledButtonDropdown extends Component { |
| 9 | constructor(props) { |
| 10 | super(props); |
| 11 | |
| 12 | this.state = { isOpen: props.defaultOpen || false }; |
| 13 | this.toggle = this.toggle.bind(this); |
| 14 | } |
| 15 | |
| 16 | toggle() { |
| 17 | this.setState((prevState) => ({ isOpen: !prevState.isOpen })); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…