I am trying to highlight the selected date on click of specific date using React-dates but didn't get any solution for it. I had used:
isDayHighlighted={day1 => returnDates().some(day2 => isSameDay(day1, day2))}
which works correctly to highlight dates. but for specific date how can i do this.
If i understand correctly (based on your comments), you want to reset the selected date whenever the current displayed month is changed.
You can hook to
onNextMonthClickandonPrevMonthClickand set the date tonull.Running example