A simple wrapper around the native file input
npm install react-file-picker


Sensible file input wrappers. Demo included.
npm i react-file-picker
``js
import { FilePicker } from 'react-file-picker'
const MyComponent = () => (
onChange={FileObject => (/ do something with File object /)}
onError={errMsg => (/ do something with err msg string /)
>
)
`
`js
import { ImagePicker } from 'react-file-picker'
const MyComponent = () => (
dims={{minWidth: 100, maxWidth: 500, minHeight: 100, maxHeight: 500}}
onChange={base64 => (/ do something with base64 encoded string /)
onError={errMsg => (/ do something with err msg string /)
>
)
`
```
npm run demo