React Checkbox not getting value onCheck . I tried an accepted answer, and get constant value first , but it is getting undefined(data variable)
<TableCell>
<Checkbox name="myCheckBox1" onChange={(e, data) => this.checkchange1('2', data.value)}/>
</TableCell>
checkchange1 = (e, data) => {
console.log('it works');
console.log(data.value);
}
what am I missing ?
Aucun commentaire:
Enregistrer un commentaire