MCPcopy Create free account
hub / github.com/react-dnd/react-dnd / drop

Function drop

examples/01 Dustbin/Multiple Targets/Dustbin.js:19–21  ·  view source on GitHub ↗
(props, monitor)

Source from the content-addressed store, hash-verified

17
18const dustbinTarget = {
19 drop(props, monitor) {
20 props.onDrop(monitor.getItem());
21 },
22};
23
24@DropTarget(props => props.accepts, dustbinTarget, (connect, monitor) => ({

Callers

nothing calls this directly

Calls 1

getItemMethod · 0.45

Tested by

no test coverage detected