2020-12-27 20:11:50 -05:00
|
|
|
import React from 'react';
|
|
|
|
import ReactDOM from 'react-dom';
|
2021-01-01 20:03:56 -05:00
|
|
|
|
2021-01-02 10:15:03 -05:00
|
|
|
import Board from './board';
|
2021-01-01 20:03:56 -05:00
|
|
|
|
2020-12-27 20:11:50 -05:00
|
|
|
import './index.css';
|
|
|
|
|
2021-01-01 20:03:56 -05:00
|
|
|
|
2020-12-27 20:11:50 -05:00
|
|
|
class Game extends React.Component {
|
2021-01-01 20:03:56 -05:00
|
|
|
constructor(props){
|
|
|
|
super(props);
|
|
|
|
this.state = { showPopup: false };
|
|
|
|
}
|
|
|
|
|
2020-12-27 20:11:50 -05:00
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div className="game">
|
2020-12-28 16:41:13 -05:00
|
|
|
<div className="game-board">
|
|
|
|
<Board />
|
|
|
|
</div>
|
2020-12-27 20:11:50 -05:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ========================================
|
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
<Game />,
|
|
|
|
document.getElementById('root')
|
|
|
|
);
|