I'm having problems accessing the current value of a property held in (React) state when an onDragEnd event fires. The Draggable instance is initiated on component mount and the value of the state property onDragEnd is fixed at whatever it was when the Draggable instance was created.
Here is a simple (and very contrived) example of the issue: https://codesandbox.io/s/nifty-cori-d2pgt?file=/src/App.js
Apologies if this is simply a React / plain javascript issue, but I though I would ask here first. Thanks!