require('../../sass/board/scorebar.scss'); import { Component } from 'react'; import { connect } from 'react-redux'; export class Scorebar extends Component { render() { var lives = []; for (var i = 0; i < this.props.lives; i++) { lives.push(
); } return (
{this.props.current}
{this.props.high}
{lives}
); }; }; const select = (state) => { return state.scorebar; }; export default connect(select)(Scorebar);