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
Nik L. -
Prince -
Patrick -
Itamar Tati -
Top comments (0)