I have read multiple sources, and even attempted to pretty much copy this codesandbox, but it doesn't seem to help me at all.
File structure
src icon.gif App.jsx index.js styles.css component
export default function App() { return ( <div className="App"> <img src="src/img/icon.gif" alt="icon" /> </div> ); }
publicfolder if you'd like to host images locally. Just like in the codesandbox you linked, you need to have apublicfolder at the top level of your project directory with the following structure for your image to work:public/src/img/icon.gif.