Skip to main content
react-mediadrop ships as a single npm package — no separate core or transport package to install.
Requires React 18+.

Next.js / RSC

useMediaDrop uses useSyncExternalStore/useEffect, so it only runs in a Client Component. Forgetting this is the single most common integration mistake — if you hit an error like:
add "use client" to the top of the file that calls useMediaDrop:

Quickstart

Wire up a dropzone in a few lines

Agent skill

Let your AI coding agent integrate this package for you