Is there a reason that calling setSate() in a loop would prevent it from updating the state multiple times?
setSate()
I have a very basic jsbin that highlights th
I had the same problem. But tried with a little different approach.
iterateData(data){ //data to render let copy=[]; for(let i=0;) } this.setState({ setComp:copy }); } render(){ return( {this.state.setComp} ); }
I hope this helps.