Add the following to webpack.config.js
module: {
rules: [{
test: /\.svg/,
type: 'asset/source'
}]
}
Import your SVG into your component
import svgIcon from './svgs/mySvgIcon.svg';
Use m.trust
to render it.
m.trust(svgIcon)
Add the following to webpack.config.js
module: {
rules: [{
test: /\.svg/,
type: 'asset/source'
}]
}
Import your SVG into your component
import svgIcon from './svgs/mySvgIcon.svg';
Use m.trust
to render it.
m.trust(svgIcon)
For further actions, you may consider blocking this person and/or reporting abuse
Marcos Anjos -
Zane -
William Kwadwo Owusu -
Skyler Dev -
Top comments (0)