Responsive Weather website using React.
Check it out at https://my-weather-web.herokuapp.com/
In the root folder, run these commands:
$ npm install
$ npm start
Converting an array into chunks of arrays
hourlyList.forEach(time=> {
if(currentDay.isSame( moment.unix(time.dt), 'day')) {
day.push(time);
} else {
dayChunks.push(day);
currentDay = currentDay.add(1, 'days');
day=[time];
}
});