I'm using react-bootstrap and I'm wondering if it's possible to dynamically go to the next row based on code. Let me show you what I'm trying to do :
// components/WeatherList.js
import React from 'react'
import { Col, Row } from 'react-bootstrap'
import WeatherCard from './WeatherCard'
const WeatherList = ({weathers}) => {
console.log("e")
console.log(weathers)
return (
<Row>
{weathers.list.map(({dt, main, weather}) => (
<Col key={dt}>
<WeatherCard
dt={dt * 1000}
temp_min={main.temp_min}
temp_max={main.temp_max}
humidity={main.humidity}
temp={main.temp}
main={weather[0].main}
city={weathers.city.name}
country={weathers.city.country}
/>
</Col>
))}
</Row>
)
}
export default WeatherList;
I get up to 5 prediction per day (so 5 cards), but if I only get 2 prediction I want to go to a new line for the next day. On the picture you can see, I'd like to dynamically create a new row when the day change :
How can I do that ?

dtobject, the date in milliseconds?