I think it might be better to use the index file for the image folder.
Suppose you have this structure:

And you need to import all your images into your HomePage component. You can easily create the index.js file in the image folder by exporting all images with require, for example:
export const Background = require('./bg/background.jpg'); export const First = require('./photos/first.jpg'); export const Second = require('./photos/second.jpg'); export const LinkedIn = require('./social/linkedin.png');
Then you can import all of them into your component with a single import.
import { Background, First, Second, LinkedIn } from '../../assets/images'
And this will be your final folder structure: 
Hope this helps! ;)
source share