I'm following a React.JS tutorial and I'm having problems displaying an image. I don't get any errors but the image is not displaying. Below is the component and import code. Thank you.
------- Data.js-->
export const homeObjOne = { id: "about", ... imgStart: false, img: require("../../../images/svg-1.svg"), alt: "Car", ... }; ------- Index.js-->
import { ..... Img, } from "./InfoElements"; const InfoSection = ({ ... img, ImgWrap ... }) => { return ( <> ... <ImgWrap> <Img src={img} alt={alt} /> </ImgWrap> ... </> ); }; export default InfoSection;