react drag and drop file upload example codepen
Example 1: drag n drop file upload react
<FileDrop
onTargetClick={onTargetClick}
Example 2: drag n drop file upload react
const onTargetClick = () => {
fileInputRef.current.click()
}
<FileDrop
onTargetClick={onTargetClick}
const onTargetClick = () => {
fileInputRef.current.click()
}