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