Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 930 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 930 Bytes

reactimage2base64

React component to generate an image source to base64. You can make this using a path or URL. You could use all the image attributes and base events like a onclick, onmouseover etc..

NPM JavaScript Style Guide

Install

npm install --save reactimage2base64

Usage

import * as React from 'react'

import Image from 'reactimage2base64'

class Example extends React.Component {
  render () {
    return (
      <Image src="..." />
    )
  }
}

Result

License

MIT © p333ter

e8739c115366c12a48098d554ea4e93512bd0ed1