Importing svg as React component is not working in Internet Explorer (IE 11)
every environment for IE 11 is not working with [email protected]
import { ReactComponent as ExampleIcon} from './assets/example-icon.svg' and render<ExampleIcon />
should render svg
Working in chrome
not rendering in IE 11 (throws error )
app-link: application link
This is not a CRA bug.
You can try copying the contents of browserslist.production to browserslist.development. This is in package.json.
By default, the supported browsers in development mode are last 1 chrome version, last 1 firefox version and last 1 safari version.
You may have to delete node_modules/.cache to have the targets refresh.
Most helpful comment
This is not a CRA bug.
You can try copying the contents of
browserslist.productiontobrowserslist.development. This is in package.json.By default, the supported browsers in development mode are
last 1 chrome version,last 1 firefox versionandlast 1 safari version.You may have to delete
node_modules/.cacheto have the targets refresh.