score:1

Accepted answer
 this.setState(prevState => ({
                    scoreArray:[ms(this.state.time,{verbose: true}), ...prevState.scoreArray],
                    time:0,
                    submit:true

                  }));

Related Query

More Query from same tag