Closed jtaavola closed 1 year ago
Add bingo 'winner' logic to the Board component.
Board
The Space component supports an onAction parameter to communicate the space status (selected or not selected) back to the parent app (the board).
Space
onAction
something like
const updateBoardState = (spaceId) => { // do stuff } <Space key={i} id={i} onAction={updateBoardState}> word </Space>
🤷
Add bingo 'winner' logic to the
Board
component.The
Space
component supports anonAction
parameter to communicate the space status (selected or not selected) back to the parent app (the board).something like
🤷