useState
.App
component.map
with index
and inline anonymous functions so that a callback function is able to access the position of a specific element on the board (e.g, board[0][2]).map
with inline callbackindex
would represent a row or column.