KarimMokhtar / react-drag-drop-files

Light and simple Reactjs drag and drop files library to use with very flexible options to change, so you put whatever the design you want for your drop-area. Users can drag and drop or even select the file anywhere in the window.
MIT License
245 stars 86 forks source link

update: add useImperativeHandle to get dragging state #45

Closed dante01yoon closed 2 years ago

dante01yoon commented 2 years ago

Thanks for this well built library. In some projects, there was some need to add styles depends dragenter, dragout.

I think it would be better if parent component knows useDragging value is true or not.

I used forwardRef, useImperativeHandle.

dante01yoon commented 2 years ago

@KarimMokhtar It doesn't seems this PR count as my contribution. Could you plz make it counted?

KarimMokhtar commented 2 years ago

@dante01yoon It’s already merged so i think it take a few to show up. Thanks so much for your contribution

KarimMokhtar commented 2 years ago

@dante01yoon Congratulations bro :) Screenshot from 2022-02-13 19-58-41