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

Method constructor

packages/dnd-core/test/sources.js:4–8  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

2
3export class NormalSource extends DragSource {
4 constructor(item) {
5 super();
6 this.item = item || { baz: 42 };
7 this.didCallBeginDrag = false;
8 }
9
10 beginDrag() {
11 this.didCallBeginDrag = true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected