This package has been deprecated

Author message:

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

parcel-plugin-react-svg

0.1.0 • Public • Published

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

/parcel-plugin-react-svg/

    Package Sidebar

    Install

    npm i parcel-plugin-react-svg

    Weekly Downloads

    6

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    520 kB

    Total Files

    8

    Last publish

    Collaborators

    • restlessbit