}
}
+ join_team(team) {
+ fetch_put_json("player", {team: team});
+ }
+
render() {
const history = this.state.history;
const current = history[this.state.step_number];
team={this.state.player_info.team}
/>,
<div key="game" className="game">
+ <button className="inline"
+ onClick={() => this.join_team('X')}>Join Team X</button>
+
+ <button className="inline"
+ onClick={() => this.join_team('O')}>Join Team O</button>
<div>{status}</div>
<div className="game-board">
<Board