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

Method render

examples/01 Dustbin/Copy or Move/Box.js:51–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 };
50
51 render() {
52 const { isDragging, connectDragSource } = this.props;
53 const { name } = this.props;
54 const opacity = isDragging ? 0.4 : 1;
55
56 return (
57 connectDragSource(
58 <div style={{ ...style, opacity }}>
59 {name}
60 </div>,
61 )
62 );
63 }
64}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected