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

Method render

examples/01 Dustbin/Single Target/Box.js:46–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected