I am currently working with React 17.0.2 and Material UI, and I have a specific requirement to focus on a particular card from a list of cards by clicking on it. (Please refer to the attached picture for clarification). I hope this explanation helps you understand my requirement.
https://i.stack.imgur.com/YsK1d.png
<Grid md={3} className={classes.card}>
<Card className={classes.root} style={{ cursor: "pointer" }}>
<CardHeader title="Coloring Page" />
<CardMedia
className={classes.media}
image={cardImage}
title="Paint"
/>
<CardActions disableSpacing>
<IconButton aria-label="add to favorites">
<FavoriteIcon />
</IconButton>
<IconButton aria-label="share">
<ShareIcon />
</IconButton>
<Button>Download</Button>
</CardActions>
</Card>
</Grid>