I have an document in my db as follows:
doc = { _id: "11234324", image: "myimage.png" } I want to display myimage.png which exists locally:
path = "/Users/xxx/go/src/github.com/xxx/goapp/files/myImage.png"
I tried:
<img src={path+doc.image}/> It does not work. I even can't use a variable inside require() function.
Any solutions how to solve it?