how to display a image by get method in reactjs? how to display a image by get method in reactjs? flask flask

how to display a image by get method in reactjs?


Well you're almost there. Just set the state to your list of images:

this.setState({  images: response.data.data});

and then in your render function just do something like this:

{this.state.images.map(image =>  <img src={image}/>)}