useDropzone: custom hook that creates a dropzone in your react application!

Photo by ANIRUDH on Unsplash

In this post, I would like to share my own custom hook that turns a DOM element into a dropzone where visitors can submit their file into your react application. The hook is less than 100 lines of code. It is very tiny and works fast.

Before you read this post, I assume you are familiar with how react.useEffect and custom hook work in…