react-dnd-html5-backend
react-dnd-html5-backend copied to clipboard
connectDragSource can specify custom dataTransfer data
I've got a use case with a codebase in transition, where ideally I'd like to interop with the existing code. Are you opposed to something like this? Shouldn't change any behavior that I can see.
This let's a react-dnd user do:
connectDragSource(
<div>MyDraggable</div>,
{
dataTransferData: {
some: 'extra-stuff-another-lib-will-use'
}
}
)