import React from "react"; import defaultState from "store/default_state"; import ChessBoardSquare from "components/chess-board-square"; class ChessBoard extends React.Component { constructor(props) { super(props); this.state = defaultState; } chessBoardRow(row) { return (
{row.map((square) => )}
) } render() { return (
{this.state.board.map((row) => this.chessBoardRow(row))}
); } } export default ChessBoard;