Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/react-dnd/react-dnd
/ beginDrag
Function
beginDrag
examples/01 Dustbin/Copy or Move/Box.js:16–20 ·
view source on GitHub ↗
(props)
Source
from the content-addressed store, hash-verified
14
15
const
boxSource = {
16
beginDrag(props) {
17
return
{
18
name: props.name,
19
};
20
},
21
22
endDrag(props, monitor) {
23
const
item = monitor.getItem();
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected