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

Method constructor

examples/06 Other/Native Files/Container.js:9–15  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

7@DragDropContext(HTML5Backend)
8export default class Container extends Component {
9 constructor(props) {
10 super(props);
11
12 this.handleFileDrop = this.handleFileDrop.bind(this);
13
14 this.state = { droppedFiles: [] };
15 }
16
17 handleFileDrop(item, monitor) {
18 if (monitor) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected