import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
class Square extends React.Component {
render() {
return (
);
}
}
class Board extends React.Component {
renderSquare(i) {
return ;
}
render() {
const status = 'Next player: X';
return (
{status}
{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)}
);
}
}
class Game extends React.Component {
render() {
return (
{/* status */}
{/* TODO */}
);
}
}
// ========================================
ReactDOM.render(
,
document.getElementById('root')
);