This React component displays a div.game-over-status and reacts to
"gameOver" events from Haskell. When a player wins a p is rendered inside
the containing div. The p-tag will have a class describing who won,
winner-1, winner-2, or in the case of a draw winner-null. When a new
game is started the inside of the containing div is cleared.
This React component displays a
div.game-over-status
and reacts to "gameOver" events from Haskell. When a player wins ap
is rendered inside the containingdiv
. Thep
-tag will have a class describing who won,winner-1
,winner-2
, or in the case of a drawwinner-null
. When a new game is started the inside of the containingdiv
is cleared.