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

Method render

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

Source from the content-addressed store, hash-verified

30 };
31
32 render() {
33 const { isDragging, connectDragSource, showCopyIcon } = this.props;
34 const opacity = isDragging ? 0.4 : 1;
35 const dropEffect = showCopyIcon ? 'copy' : 'move';
36
37 return connectDragSource(
38 <div style={{ ...style, opacity }}>
39 When I am over a drop zone, I have {showCopyIcon ? 'copy' : 'no'} icon.
40 </div>,
41 { dropEffect },
42 );
43 }
44}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected