I'm trying to define a 's backgroundImage in a map() function but I can't understand what the correct syntax is to add one:
I have a variable named value that stores a file's name and I want to insert uploads/ in my backgroundImage because it's the folde where I want the backgroundImage to fetch the images.
I've tried:
<div className="image-show" key={index} style={{backgroundImage: URL({'uploads/' + value})}}>
But it returns the following error:
Thanks in advance
