I\'m using create-react-app, and I am struggling to load images. I am following the instructions as specified here, but I keep seeing the following error:
create-react-app
I had the same problem and was able to solve with a require statement.
const photo = require('./party.png');
and then in your component use that like:
render() { return (
also see this post Displaying a static image using React, Typescript and Webpack