A
A
amanDev2019-12-19 13:27:25
React
amanDev, 2019-12-19 13:27:25

I use Material UI Icons. I have many Card. What should I do to make each card have a different icon?

<Card className={classes.card} style={{background: game.background}}>
        <CardActionArea className={classes.MuiCardActionArea}>
            <ViewColumnIcon className={classes.iconCard}/>
            Здесь пока рендерится только одна иконка....Хочу  так чтобы каждая карточка имела свою иконку от Material UI
            <CardContent>
                <Typography className={classes.title} variant="h5" component="h2">
                    {game.name}
                </Typography>
            </CardContent>
        </CardActionArea>
    </Card>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question