I usually make images folder under src folder, so I access them through require require("images/sample.jpg") in my components.
My friend who's learning React was struggling to load images and he made images folder under public like the below image. With that, he can access images without require(), so he just does images/sample.jpg. I thought I had it's required to use require() to load images in React.
Is there no problem to put images folder under public? then why should we use require()?
