score:0

export const ImageComponent = ({ src }) => {
  return (
      <img src={src} alt="" />
  );
};

// Load component as below
<ImageComponent src={require("../images/image.svg")} />

Related Query

More Query from same tag