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

Method render

examples/02 Drag Around/Naive/Container.js:57–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 }
56
57 render() {
58 const { hideSourceOnDrag, connectDropTarget } = this.props;
59 const { boxes } = this.state;
60
61 return connectDropTarget(
62 <div style={styles}>
63 {Object.keys(boxes).map((key) => {
64 const { left, top, title } = boxes[key];
65 return (
66 <Box
67 key={key}
68 id={key}
69 left={left}
70 top={top}
71 hideSourceOnDrag={hideSourceOnDrag}
72 >
73 {title}
74 </Box>
75 );
76 })}
77 </div>,
78 );
79 }
80}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected