嘗試這個:
import { ReactComponent as SamImage } from "../asset/image/sam.png"; //Rest of your code... export default function company(){ return( <SamImage /> )}
嘗試這個: