I am currently using react-bootstrap to iterate through an array to display cards. I want these cards to be responsive on different screen sizes. The array being mapped.
<div>
{filteredProductsList.map((product) => {
return (
<Col key={product._id}>
<ProductCard product={product} />
</Col>
);
})}
</div>
And here is the ProductCard component
<Card className="product-card col-md-4">
<Card.Img className="product-img" variant="top" src={product.image} />
<Card.Body>
<Card.Title>{product.title}</Card.Title>
<Card.Text>{product.description}</Card.Text>
</Card.Body>
</Card>
It is currently displaying the cards in a single column with the assigned width of 4.