Answer the question
In order to leave comments, you need to log in
How to write the src path in React correctly?
How to correctly write the path to src in React?
<img className="img-fluid" src={'{i/com/'+v.picture+'}'} alt=""/>
Answer the question
In order to leave comments, you need to log in
img className="img-fluid" src={'i/com/'+v.picture} alt=""/>
i/com/temp.jpg
, and you get:{i/com/temp.jpg}
It is possible as above, but a more pontoon would use template lines src={`i/com/${v.picture}`}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question