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

Method render

examples/04 Sortable/Simple/Card.js:89–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87 };
88
89 render() {
90 const { text, isDragging, connectDragSource, connectDropTarget } = this.props;
91 const opacity = isDragging ? 0 : 1;
92
93 return connectDragSource(connectDropTarget(
94 <div style={{ ...style, opacity }}>
95 {text}
96 </div>,
97 ));
98 }
99}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected