Wpis z mikrobloga

@Matt23: handleValueIncrement(event) {
this.setState((state, props) => ({
age: state.age + 1
}));
}

handleValueDecrement(event) {
this.setState((state, props) => ({
age: state.age - 1
}));
}
  • Odpowiedz