QuickChess/src/index.js

32 lines
502 B
JavaScript
Raw Normal View History

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