I'm learning react and I'm trying to do a call back function to keep my states in sync. I've done the below code which does work and keeps it in sync but I get the
warning "Unexpected user of comma operator no-sequences"
handleInputChange = (value) => {
this.setState(prevState => ({ amount: prevState.amount = parseInt(value, 0) }, this.handleCalculation()));
}
Any help would be great. Thanks