import React from "react"; class PreRound extends React.Component { constructor(props) { super(props); this.textareaRef = React.createRef(); } copyGameId() { const { current } = this.textareaRef; current.select(); document.execCommand("copy"); } render() { const { gameId, playerName, onStart } = this.props; return (

Playing as {playerName}

Game Code: {gameId}