jtaavola / buzzword-bingo

Buzzword Bingo built with React
https://jtaavola.github.io/buzzword-bingo/
MIT License
1 stars 2 forks source link

Bingo 'winner' logic #9

Closed jtaavola closed 1 year ago

jtaavola commented 1 year ago

Add bingo 'winner' logic to the Board component.

The Space component supports an onAction parameter to communicate the space status (selected or not selected) back to the parent app (the board).

something like

const updateBoardState = (spaceId) => {
  // do stuff
}

<Space key={i} id={i} onAction={updateBoardState}>
  word
</Space>

🤷