This package has been deprecated in favor of the official SVGR package.
Parcel plugin for using SVGs as React components.
import React from 'react'
import BusteloIllo from './bustelo.svg'
class App extends React.Component {
render() {
return <BusteloIllo width={500} fill="blue" />
}
}
Install parcel-plugin-react-svg
from npm and you should be all good to go 💫.
With npm:
npm install parcel-plugin-react-svg -D
Or if you prefer yarn:
yarn add parcel-plugin-react-svg -D