Unhandled Rejection (TypeError): res.data is not iterable (anonymous function) C:/Node/Projetos/curso-react-alura/src/Autores.js:21 18 | componentDidMount(){ 19 | ApiService.ListaNomes() 20 | .then(res => {
21 | this.setState({nomes: [...this.state.nomes, ...res.data]}); | ^ 22 | PopUp.exibeMensagem('success', 'Autores Listados com sucesso'); 23 | }); 24 | } View compiled