class { onInput(input) { this.state = { first: true, second: false } } toggleValue(e) { this.state[ e.target.value ] = e.target.checked } }
First Checkbox
Second Checkbox