Open AdelMahjoub opened 6 years ago
onChange={this.handleRadio} not always updating the this.state.radioGroup onClick={this.handleRadio} will always update the this.state.radioGroup
onChange={this.handleRadio}
this.state.radioGroup
onClick={this.handleRadio}
using an onClick handler instead of an onChange handler in listing 7.1 fix this issue
onChange={this.handleRadio}
not always updating thethis.state.radioGroup
onClick={this.handleRadio}
will always update thethis.state.radioGroup
using an onClick handler instead of an onChange handler in listing 7.1 fix this issue