Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/react-dnd/react-dnd
/ handleFileDrop
Method
handleFileDrop
examples/06 Other/Native Files/Container.js:17–22 ·
view source on GitHub ↗
(item, monitor)
Source
from the content-addressed store, hash-verified
15
}
16
17
handleFileDrop(item, monitor) {
18
if
(monitor) {
19
const
droppedFiles = monitor.getItem().files;
20
this.setState({ droppedFiles });
21
}
22
}
23
24
render() {
25
const
{ FILE } = NativeTypes;
Callers
nothing calls this directly
Calls
1
getItem
Method · 0.45
Tested by
no test coverage detected