0.1.0 • Published 5 years ago

parcel-plugin-react-svg v0.1.0

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

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