I am new with reactjs. I would like to seek some guidance on how to disable days on react-day-picker with the following criteria:
- Off days
- Past days
- An array of dates (to be fetched on backend)
Sample code:
const selectedDays = [new Date(2020,01,01), new Date(2020,01,02)]
< DayPicker disabledDays={[{ daysOfWeek: dayOffs }, {before: new Date()}, selectedDays]} >
Any help is very much appreciated :)