Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

parcel-plugin-react-svg

restlessbit9MITdeprecated0.1.0

This package has been added to SVGR. Please use the @svgr/parcel-plugin-svgr package instead.

Parcel plugin for using SVGs as React Components.

parcel, react, svg, plugin

readme

parcel-plugin-react-svg

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" />
  }
}

How to use it

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