How can I fetch a list of images from an api into react
I am learning React and I learned how to fetch an image from an API. The API fetches a byte array from an sqlite database and it creates a FileContentResult. In react it fetches via the blob function(await response.blob) and it creates an url that you can use in React. So far it is pretty straightforward with no problems. The problem comes when I am trying to fetch a list of FileContentResult. What would be the most practical way of doing it? Is it to do a fetch json and get the base64 string in each of them or is there a better way of doing it? I have heard that This is the code that works with one picture. How would I modify it to work with multiple pictures.