I am creating a gallery of images. The gallery contains images that users have saved from previous visits to the site. I am storing those images in an s3 bucket. When an API is called, I download those images locally, and am then trying to display those images in my frontend. The images are named after the product they are associated with, so that when they are downloaded, I know what is going on with each picture. I know with React that you have to import an image before you use it, but is there a way to do this without knowing beforehand what the image is called, and how many images there are going to be? Is there a way to do this programmatically? If not, what tools should I use?
Thanks for your replies