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

Method render

examples/01 Dustbin/Multiple Targets/Box.js:36–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 };
35
36 render() {
37 const { name, isDropped, isDragging, connectDragSource } = this.props;
38 const opacity = isDragging ? 0.4 : 1;
39
40 return connectDragSource(
41 <div style={{ ...style, opacity }}>
42 {isDropped ?
43 <s>{name}</s> :
44 name
45 }
46 </div>,
47 );
48 }
49}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected