Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/react-dnd/react-dnd
/ moveKnight
Function
moveKnight
examples/00 Chessboard/Tutorial App/Game.js:30–33 ·
view source on GitHub ↗
(toX, toY)
Source
from the content-addressed store, hash-verified
28
}
29
30
export
function
moveKnight(toX, toY) {
31
knightPosition = [toX, toY];
32
emitChange();
33
}
Callers
1
drop
Function · 0.90
Calls
1
emitChange
Function · 0.85
Tested by
no test coverage detected