I’m trying to implement some drag and drop functionality using rescript-react but I can’t really figure out how to get at the datatransfer object (HTML Drag and Drop API - Web APIs | MDN).
The event supplied to a dragstart handler is a ReactEvent.Mouse.t but I can’t find any way to get at the datatransfer object (or how to subsequently use setData, etc, and everything that follows in implementing dnd). I couldn’t find anything searching the rescript-react repo. I assume it would be here (or in that file) if it existed? rescript-react/ReactEvent.res at master · rescript-lang/rescript-react · GitHub
I found something for it in the reason-react repo, though: reason-react/ReactEvent.rei at main · reasonml/reason-react · GitHub
Are bindings for React drag and drop stuff missing from rescript-react or am I too much of a beginner to be able to find/understand them?
I did find drag and drop bindings in the rescript-webapi repo, but I don’t know if or how I could use those given that what I have is a ReactEvent.Mouse.t
Thanks a lot in advance!