So I have this:
let total = newDealersDeckTotal.reduce(function(a, b) { return a + b; }, 0); console.log(total, \'t
setState is asynchronous. You can use callback method to get updated state.
changeHandler(event) { this.setState({ yourName: event.target.value }, () => console.log(this.state.yourName)); }