React File Base64
React Component for Converting Files to base64. It's based on Dev Mozilla Website
Install
You can import react-file-base64.js to your react component file like this and process it with your preprocessor.
You can install it via NPM
npm install react-file-base64
Usage
;; ; Component { super thisstate = files: } // Callback~ { this } { return <FileBase64 multiple= true onDone= thisgetFiles /> } ReactDOM
Props
multiple (Boolean)
Does your component support multiple files?
onDone (Function)
Callback function when all files have been processed
Thank You for Making this useful~
Let's talk about some projects with me
Just Contact Me At:
- Email: bosnaufalemail@gmail.com
- Skype Id: bosnaufal254
- twitter: @BosNaufal
License
MIT Copyright (c) 2016 - forever Naufal Rabbani