@asbjornenge/react-svg
React svg component.
Last updated 5 years ago by asbjornenge .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @asbjornenge/react-svg 
SYNC missed versions from official npm registry.

Component SVG

React <svg /> component.

This package is scoped because it has some particular opinions baked into it.

Install

npm install --save @asbjornenge/react-svg

Use

import Svg from '@asbjornenge/react-svg'
import monkey from './graphics/monkey.svg'

class MonkeyFace extends React.Component {
    render() {
        return (
            <Svg svg={monkey} className="monkeyWrapper" />
        )
    }
}

Changelog

1.0.0

  • Initial release :tada:
  • Spreading props (except svg)
  • Using jsx + es6 + browserify transform field in package.json

enjoy

Current Tags

  • 1.0.0                                ...           latest (5 years ago)

1 Versions

  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |