+
{status}
+
{button}
+
+ {this.renderSquare(0)}
+ {this.renderSquare(1)}
+ {this.renderSquare(2)}
+
+
+ {this.renderSquare(3)}
+ {this.renderSquare(4)}
+ {this.renderSquare(5)}
+
+
+ {this.renderSquare(6)}
+ {this.renderSquare(7)}
+ {this.renderSquare(8)}
+
+
+ );
+ }
+}
+
+
+// Initialization of game. Passes the choice of the user to Board, where the actual game will render.
+class Game extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ hasChosen: false,
+ isX: true,
+ }
+ }
+
+ question() {
+ return (
+