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

Method render

examples/01 Dustbin/Stress Test/Box.js:41–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 };
40
41 render() {
42 const { name, isDropped, isDragging, connectDragSource } = this.props;
43 const opacity = isDragging ? 0.4 : 1;
44
45 return connectDragSource(
46 <div style={{ ...style, opacity }}>
47 {isDropped ?
48 <s>{name}</s> :
49 name
50 }
51 </div>,
52 );
53 }
54}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected