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

Method render

examples/05 Customize/Drop Effects/TargetBox.js:31–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 };
30
31 render() {
32 const { canDrop, isOver, connectDropTarget } = this.props;
33 const isActive = canDrop && isOver;
34
35 return connectDropTarget(
36 <div style={style}>
37 {isActive ?
38 'Release to drop' :
39 'Drag item here'
40 }
41 </div>,
42 );
43 }
44}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected