SyntaxFix
Write A Post
Hire A Developer
Questions
the react docs explain this nicely in the documentation, you have to use process.env.PUBLIC_URL with images placed in the public folder. See here for more info
process.env.PUBLIC_URL
return <img src={process.env.PUBLIC_URL + '/img/logo.png'} />;