this.setState((state, props) => ({ counter: state.counter + props.increment }));
This version of this.setState() takes a callback and passes the "previous" state as the first parameter. USE THIS to calculate with states, as state update asynchronously.