Description
react-dropzone-esm is a fork of the react-dropzone library, which provides a drag-and-drop file area for React. The fork exists so that the library works with modern frameworks that use ES modules, such as Remix v2, newer versions of Next.js and Vite, while still working with older tools such as Webpack 4. It publishes both ESM and CommonJS bundles, has a properly configured package.json exports field, ships the ESM bundle with a .mjs extension, and removes unused files such as docs and logos from the published package. The author says the source of react-dropzone is not modified in any other way. The fork is not planned to receive bug fixes or new features, since its only purpose is packaging compatibility, and the documentation has been removed from the fork to keep maintenance simple, so you should read the documentation of the original react-dropzone. The README records the changelog, starting with version 15.0.0 based on react-dropzone at the end of 2023, and it notes that manual tests are run for each new release during the development of the Mantine dropzone package. Install it with yarn or npm.…
Highlights
- ESM and CommonJS bundles
- Works with Remix v2, Next.js and Vite
- Still works with Webpack 4
- Smaller published package
- Source of react-dropzone unchanged
Ratings & Reviews
No ratings yet
Be the first to rate react-dropzone-esm.
People also visit
react-dropzone-uploader
React file dropzone and uploader: fully customizable, progress indicators
react-dropzone-esm FAQ
What is react-dropzone-esm?
A fork of react-dropzone that adds ESM and CommonJS packaging so it works with modern module-based build tools.
Why was the fork made?
The README says the fork exists to be compatible with modern frameworks that use ES modules, such as Remix v2, newer Next.js and Vite.
Does it change the library's behavior?
The README says the source of react-dropzone is not modified in any way. The changes are packaging only.
Will it receive new features or bug fixes?
No. The README says it is not planned, since its only purpose is compatibility.
Where is the documentation?
It was removed from this package, so you should use the documentation for the original react-dropzone.
How do I install it?
Install it with yarn or npm, as the README describes.
What are the best react-dropzone-esm alternatives?
Popular alternatives to react-dropzone-esm include react-dropzone, react-dropzone-uploader and react-mui-dropzone. See all react-dropzone-esm alternatives




















