In an attempt to make a 2d reorganizable list I have set up the following example.
https://codesandbox.io/s/wizardly-cerf-4zpkt?file=/src/DragableItem.js:696-746
However the hovered over component is always the component that is hovering. This means that there is no way to move anything, because it will always be put on itself. Is there a way to fix this?
To reproduce, drag any of the 9 boxes over any of the others.
There were two mistakes in the example codesandbox.
Here is the codesandbox with the corrections. https://codesandbox.io/s/blazing-browser-3h47r?file=/src/DragableItem.js