Question about images in react

Hello all,

I am currently learning react and have a couple questions about images. For some context I am creating an application which will have about 100+ images that will need to be imported. My first question about images; is there anyway to import an entire folder of images for react or do I have to import one photo at time with import img1 from './images/MyImage' My next question is that since I’ve got a lot of images that are going to be used on this application, would it be better to host these images on a website or database and use the URLs from those images with my <img src="imageURL"/> or is importing them locally better?

submitted by /u/whotheFmadethis
[link] [comments]