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

Method beginDrag

packages/react-dnd/src/createSourceFactory.js:71–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69 }
70
71 beginDrag() {
72 const item = spec.beginDrag(this.props, this.monitor, this.component);
73 if (process.env.NODE_ENV !== 'production') {
74 invariant(
75 isPlainObject(item),
76 'beginDrag() must return a plain object that represents the dragged item. ' +
77 'Instead received %s. ' +
78 'Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',
79 item,
80 );
81 }
82 return item;
83 }
84
85 endDrag() {
86 if (!spec.endDrag) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected