1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
import React from "react"; import type { GameState } from "../gameState"; import "./Play.css"; type PlayProps = { gameState: GameState; setGameState(newGameState: GameState): void; } export function Play({ gameState, setGameState }: PlayProps) { return ( <div> <p>{gameState.players[0].name} vs {gameState.players[1].name}</p> To do... </div> ) }