This is my use case. I have a bar of components that the user can drag and drop to a grid(using react-grid-layout, which in turn uses react-draggable). So I'm essentially calling ondragstart on a Draggable item.
This is what is it does as of now:
user drags item from topbar
creates new GridItem
item calls onDragStart (how?) and listens to mouse event (how?)
This is my use case. I have a bar of components that the user can drag and drop to a grid(using react-grid-layout, which in turn uses react-draggable). So I'm essentially calling ondragstart on a Draggable item.
This is what is it does as of now:
Anyone knows how to do this?