You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, currently I am loading SVG files wit imports: import LogoSVG from '../../../assets/general/logo.svg';
Now I am trying to create an image loading function that checks the source ending and recognize if image is SVG or PNG.
For this I would need someway to create SVG in a function instead with an import and return it as a component.
Something like this: const LogoSVG = require("../../../assets/general/logo.svg");
Is there a possibility?
The text was updated successfully, but these errors were encountered:
Hello, currently I am loading SVG files wit imports:
import LogoSVG from '../../../assets/general/logo.svg';
Now I am trying to create an image loading function that checks the source ending and recognize if image is SVG or PNG.
For this I would need someway to create SVG in a function instead with an import and return it as a component.
Something like this:
const LogoSVG = require("../../../assets/general/logo.svg");
Is there a possibility?
The text was updated successfully, but these errors were encountered: