react upload drag and drop code example
Example 1: drag n drop file upload react
<FileDrop
onTargetClick={onTargetClick}
Example 2: drag n drop file upload react
const onTargetClick = () => {
fileInputRef.current.click()
}
Example 3: drag n drop file upload react
nvm use # Probably optional, but it can't hurt
cd file-drop
npm install
npm start
cd demo
npm install
npm start