// Cell.js import React, { Component } from 'react'; export default class Cell extends Component { render() { const cellSize = { width: this.props.size, height: this.props.size } return ( <div style={cellSize}> </div> ); } }
// Cell.js import React, { Component } from 'react'; export default class Cell extends Component { render() { const cellSize = { width: this.props.size, height: this.props.size } return ( <div style={cellSize}> </div> ); } }