I need to specify dynamic background image for div.
So it looks like this.
"
url(../../public/${imgName})}} />"
But when I run it with npm start, it converted into absolute url - http://localhost:3000/public/test.png, and it can't load the image.
Is there anyway I can solve this issue?
Most helpful comment