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

Function beginDrag

examples/01 Dustbin/Single Target/Box.js:17–21  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

15
16const boxSource = {
17 beginDrag(props) {
18 return {
19 name: props.name,
20 };
21 },
22
23 endDrag(props, monitor) {
24 const item = monitor.getItem();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected