Error Importing Image into React Component

I have an images folder with one image stock.jpg in it. When I try to import it into my Movie component with import {stock} from '../images/stock.jpg' I get an error Attempted import error: 'stock' is not exported from '../images/stock.jpg'. The file path in the import looks fine to me, here’s my directory structure directory structure

What am I doing wrong?

Answer

Try again to export without {}

import ImageJPG from "../images/stock.jpg";

If it is svg

import {ReactComponent as ImageSVG} from "../images/stock.svg"