You can solve that using 2 simple ways, one of them is to take the image address as a constant, the other one can be passing the address directly. To clarify the images cannot be outside(no absolute path) of your project, i.e. the direction to your image should be as follows
../splunk-logo.png
import "./styles.css";
const image = require("./Landscape.jpg");
export default function App() {
return (
<div className="App">
<h1>Hello CodeSandbox</h1>
{/* One way */}
<img src={image} alt="Landscape img" height="200px" />
<br />
{/* Second way */}
<img src={require("./Landscape.jpg")} alt="Second Land" height="200px" />
<h2>Start editing to see some magic happen!</h2>
</div>
);
}
Test Here