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

Method constructor

packages/dnd-core/test/targets.js:4–9  ·  view source on GitHub ↗
(dropResult)

Source from the content-addressed store, hash-verified

2
3export class NormalTarget extends DropTarget {
4 constructor(dropResult) {
5 super();
6 this.didCallDrop = false;
7 this.didCallHover = false;
8 this.dropResult = dropResult || { foo: 'bar' };
9 }
10
11 hover() {
12 this.didCallHover = true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected