Try using the prevState classback for
setState
when comparing to the current state. For example: this.setState(prevState => ({ answers: [ ...prevState.answers, { answerChoice: '', key: uuid() } ] }));