Trying to populate 16 random images using Math.random and a filter
Trying to populate 16 random images using Math.random and a filter ``import React from 'react' import { getCard } from '../redux' import { connect } from 'react-redux' import CardBoard from './CardBoard' class Board extends React.Component{ componentDidMount(){ this.props.getCard() } render(){ let gameCard = Math.floor(Math.random() * (54 - 2) +2); const game = () => { let cards = ; if(cards.length < 16) { cards.push(gameCard); } return cards; }; return( {this.props.cards .filter(one => one.number === gameCard) .map(card => ( ))} ); } } export default connect(state => state, { getCard })(Board)`` Welcome to stackoverflow B L! There is not quite enough information in your q...
