I am trying to give image name in src dynamically. I want to set image name dynamically using variable with path. but I am not able to set src correctly. I tried solutions o
if you dont want to require the image then you have to put all your images into public folder and then
this method will work.