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

Function handleChange

examples/00 Chessboard/Tutorial App/index.js:14–21  ·  view source on GitHub ↗
(knightPosition)

Source from the content-addressed store, hash-verified

12 }
13
14 handleChange(knightPosition) {
15 const nextState = { knightPosition };
16 if (this.state) {
17 this.setState(nextState);
18 } else {
19 this.state = nextState;
20 }
21 }
22
23 componentWillUnmount() {
24 this.unobserve();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected