state = {count: 0} increment = () => { this.setState(previousState => ({ count: previousState.count + 1 })) }