React DnD is a set of React higher-order components to help you build complex drag and drop interfaces while keeping your components decoupled.
Questions tagged [react-dnd]
425 questions
2
votes
1 answer
React dnd to push object of dropped item to component's state.
In my component, there are local state of paid and droppedItems.
constructor () {
super();
this.state = {
droppedItems: [],
};
And I specified drop specification like below,
drop(props, monitor) {
const orderItem = monitor.getItem();
…

D.R
- 829
- 4
- 16
- 30
2
votes
1 answer
ReactDnD sorting elements not updating on Dragging
Hello i am following this code from this example to make a similar component. My component is working as i expected (it is sorting correctly when drag and drop) but when i am dragging the card the opacity 0 must follow the dragging element to "feel"…

Neto Braghetto
- 1,371
- 1
- 15
- 30
2
votes
1 answer
react-dnd getDecoratedComponentInstance() is not a function
I am currently building a feature for file upload and sorting within react.
I have used the following…

Greg
- 113
- 1
- 14
2
votes
2 answers
Reordering table columns with react via drag and drop
I have an html table that should be able to reorder rows as well as columns.
Reordering rows is pretty straight forward but reordering columns is pretty hard since the cells of a column do not share the same parent element.