// Correct this.setState(function(state, props) { return { counter: state.counter + props.increment }; });
return { ...state, (updates here) }