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)
We're a place where coders share, stay up-to-date and grow their careers.
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
jo -
Matteo Bruni -
sharath mohan -
TURINUMUGISHA Souvenir -
Once suspended, jeremyjackson89 will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, jeremyjackson89 will be able to comment and publish posts again.
Once unpublished, all posts by jeremyjackson89 will become hidden and only accessible to themselves.
If jeremyjackson89 is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Jeremy Jackson.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag jeremyjackson89:
Unflagging jeremyjackson89 will restore default visibility to their posts.
Discussion (0)