How to hide photos in a project
P粉587780103
P粉587780103 2023-08-10 15:47:21
0
1
418
<p>I want to add pictures to my project through img tags, I wrote the code as follows, but the pictures are not displayed...I want the pictures folder to be inside the public folder.</p> <p>Cannot display photo in project</p>
P粉587780103
P粉587780103

reply all(1)
P粉727531237

Try this:

import { ReactComponent as SamImage } from "../asset/image/sam.png";
//Rest of your code...
export default function company(){
  return(
    <SamImage />
)}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template