estoy usando esta biblioteca https://github.com/hypeserver/react-date-range
Quiero que cuando haga clic en un solo día, capture este evento. Intenté esto pero arroja un error de DatePicker. Si cambio el orden de los parámetros, los errores no aparecen, pero el archivo console.log arroja "indefinido"
const handleDatesChange = (e, date) => { console.log(e); // here i'm getting "undefined" ... }; <DateRangePicker preventSnapRefocus showPreview showSelectionPreview direction="horizontal" minDate={new Date()} monthDisplayFormat="MMMM yyyy" months={2} ranges={calendarDates} retainEndDateOnFirstSelection={false} showDateDisplay={false} showMonthAndYearPickers={false} weekdayDisplayFormat="EEEEEE" onChange={($event, item) => handleDatesChange($event, [item.selection])} />