Simple React Hook to build a custom FilePicker component.
npm install react-filepicker-hook>
 
``bash`
npm install --save react-filepicker-hook
`tsx
import React from 'react'
import { useFilePicker } from 'react-filepicker-hook'
const Example = () => {
const { files, errors, FileInput, showFilePicker } = useFilePicker({
minSize: 10000, // Size in Bytes
maxSize: 10000000 // Size in Bytes
})
return (
<>
{/ Include hidden input field and pass regular HTMLInput props /}
MIT © ryoid
---
This hook is created using create-react-hook.