Hi there, I've been experimenting with React and the UNSPLASH API. When I search for a term, I can see a list of details in the console. After running the map function, I display the images on my screen. What I want to achieve is to have a 12-column grid layout where two images are placed next to each other in each row.
<div className="row">
<div className="col-lg-12">
<div className="image-list col-lg-6">
{images}
</div>
</div>
</div>
CSS File:
.image-list img{
width: 90%;
height: 50vh;
margin-bottom: 40px;
}
However, the current code displays only one image per row. Here's a screenshot of the output https://ibb.co/343Rhb2
How can I correct this issue?