Reputation:
<img src="play.jpg" alt="play"></img>
Works perfectly in regular HTML but not in React. Is the only way to do it is add it as a background?
Upvotes: 1
Views: 837
Reputation: 817
Have you tried <img src={require('./play.jpg')} />
?
check out this question React won't load local images
Upvotes: 4