react-file-image
v1.0.1
Published
A minimalistic React img component accepting File objects
Maintainers
Readme
react-file-image
A minimalistic React img component accepting File objects
Useful when showing images directly from a <input type="file" />
Installation
npm install react-file-imageProps
Only the file Prop is required, it must be a File object
Usage
handleFileInputChange = (e) => {
const file = e.target.files[0];
}
<FileImage width="300" height="200" file={file} />License
MIT
