Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/react-dnd/react-dnd
/ moveBox
Method
moveBox
examples/02 Drag Around/Naive/Container.js:47–55 ·
view source on GitHub ↗
(id, left, top)
Source
from the content-addressed store, hash-verified
45
}
46
47
moveBox(id, left, top) {
48
this.setState(update(this.state, {
49
boxes: {
50
[id]: {
51
$merge: { left, top },
52
},
53
},
54
}));
55
}
56
57
render() {
58
const
{ hideSourceOnDrag, connectDropTarget } = this.props;
Callers
1
drop
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected