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

Method render

examples/06 Other/Native Files/TargetBox.js:36–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 };
35
36 render() {
37 const { canDrop, isOver, connectDropTarget } = this.props;
38 const isActive = canDrop && isOver;
39
40 return connectDropTarget(
41 <div style={style}>
42 {isActive ?
43 'Release to drop' :
44 'Drag file here'
45 }
46 </div>,
47 );
48 }
49}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected