I have a folder with SVG. I need to dynamically add those SVG on Konva's stage. I try to use this component. But it does not work.
const URLImage = (name) => {
const [image] = useImage(`../images/svg/${name}.svg`);
return <Image image={image} />;
};
It only works if i do common import:
import mySvg from '../images/svg/mySvg.svg';
....
const [image] = useImage(mySvg);
So what should i do? =)
