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

Method render

examples/02 Drag Around/Naive/Box.js:36–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 };
35
36 render() {
37 const { hideSourceOnDrag, left, top, connectDragSource, isDragging, children } = this.props;
38 if (isDragging && hideSourceOnDrag) {
39 return null;
40 }
41
42 return connectDragSource(
43 <div style={{ ...style, left, top }}>
44 {children}
45 </div>,
46 );
47 }
48}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected