score:0

nextQuestion = () => {
  this.setState({
    current: this.state.current + 1
    ...
  })
}

score:0

this.setState((prevState, props) => ({
  current: prevState.current + 1
})); 

score:1

setState((prevState) => {current: prevState.current + 1});

Related Query

More Query from same tag