You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
447 B

require('../../sass/board/muncher.scss');
import { Component } from 'react';
import { connect } from 'react-redux';
export class Muncher extends Component {
render() {
const classname = ['muncher', 'x' + this.props.x, 'y' + this.props.y];
return (
<div className={classname.join(' ')}></div>
);
};
};
const select = (state) => {
return state.muncher;
}
export default connect(select)(Muncher);