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

Method render

examples/04 Sortable/Stress Test/Card.js:47–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 };
46
47 render() {
48 const { text, isDragging, connectDragSource, connectDropTarget } = this.props;
49 const opacity = isDragging ? 0 : 1;
50
51 return connectDragSource(connectDropTarget(
52 <div style={{ ...style, opacity }}>
53 {text}
54 </div>,
55 ));
56 }
57}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected