{['S', 'M', 'T', 'W', 'T', 'F', 'S'].map((day,i) => {day})}
{/*
Loop through the calendar object returned by getDaysByMonth().
*/}
{this.getDaysByMonth(this.state.displayedMonth, this.state.displayedYear)
.map(
day => {
let selected = false;
if (currentDate && day.date) selected = (currentDate.toLocaleDateString() === day.date.toLocaleDateString());
return (
{day.day}
)
}
)
}