1import FileBase64 from "react-file-base64";
2// FileBase64 <- use as component
3
4<FileBase64
5 type="file"
6 multiple={false} <- if want to upload multiple images set "true"
7 onDone={} <- takes callback function
8/>
9
10// onDone return an object of: filename, fileType, base64 data
11// use the setState or function of useState to grap the base64 data