Mastering Development

How to setstate in a loop?

i am getting error at this.setState({ Url: }); in GETAPI TypeError: Cannot read property ‘setState’ of undefined.. Please suggest. The GETAPI is basically used to render the data from the API. My use-case is to store all the URLs in state and pass it to DownloadButton component. I need this URL to download the […]