Drag and drop utilities for React, built on hooks and pluggable backends
open sourceMITfree
React DnD is a set of drag-and-drop utilities for React: hooks (useDrag, useDrop, useDragLayer) and a DndProvider, monitors for drag state, drag previews, and pluggable backends for HTML5 drag and drop, touch devices and tests.
Problems it solves
- add drag and drop to a React app
- drag items between lists in React
- drag and drop that works on touch devices in React
Features
- useDrag, useDrop and useDragLayer hooks
- HTML5, touch and test backends
- drag previews
- drag state monitors
Alternatives
The same job
These do what React DnD does.
- dnd kit Lightweight, accessible drag and drop toolkit for React, Vue, Svelte, Solid and plain JavaScript
- Pragmatic drag and drop Atlassian's low-level, framework-agnostic drag and drop toolchain built on the browser's native drag and drop
- interact.js JavaScript drag and drop, resizing and multi-touch gestures with inertia and snapping
