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
Vikas Singh -
Vladislav V. -
Chase Anderson -
Jaime -
Top comments (0)