React-Dragline

Hello, I'm trying to add Drag & Drop to my website, using the react-dragline npm package But I got an issue, all the DraggableChild given in the loop are working well (the blue squares), but the DraggableChild who's outside the loop (the red one), the drag events are not handled, I don't understand why bighmm https://codesandbox.io/s/bold-morning-5jwxnd
Oalo Laola
CodeSandbox
bold-morning-5jwxnd - CodeSandbox
bold-morning-5jwxnd by Oalo Laola using react, react-dom, react-dragline, react-scripts
UU
Unknown User303d ago
G
Gazz303d ago
Thanks for your answer, yes but in my use case I need to do this, because I got some components where I need to loop threw and array, and other ones where I dont need, I just copy/paste an example code and modified it to reproduce my issue
UU
Unknown User303d ago
G
Gazz303d ago
Yes that's a good idea, I think about doing it, I'm gonna do this method I think
UU
Unknown User303d ago