-1
I’m trying to extract the elements from a array
and move on to
another array
in the state
more still unsuccessful, my code is like this:
this.state = {lista[]};
//(No metodo)
let v = "";
for(var j=0;j<=vetor.lenght-1;j++){
v = vetor[j];
this.state.setState((state) => { state.lista.concat(v); });
}
What I’m doing wrong?
Next guy copy a
array
and create another or even add another is simple but, your current code does not help, could improve?– novic