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

Method render

examples/04 Sortable/Cancel on Drop Outside/Card.js:66–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 };
65
66 render() {
67 const { text, isDragging, connectDragSource, connectDropTarget } = this.props;
68 const opacity = isDragging ? 0 : 1;
69
70 return connectDragSource(connectDropTarget(
71 <div style={{ ...style, opacity }}>
72 {text}
73 </div>,
74 ));
75 }
76}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected