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
Teo Nordic -
Guillaume Sere -
Aral Roca -
Jagroop Singh -
Top comments (0)