feat(datepicker) add child to DatePicker

This commit is contained in:
dancingCycle 2022-08-26 15:32:25 +02:00
parent e86038281a
commit 2535c809a6
1 changed files with 5 additions and 2 deletions

View File

@ -18,8 +18,11 @@ const DatepickerhooksCss = () => {
selected={startDate}
onChange={(date) => setStartDate(date)}
onCalendarClose={handleCalendarClose}
onCalendarOpen={handleCalendarOpen}
/>
onCalendarOpen={handleCalendarOpen}>
<div style={{ color: "red" }}>
Please select a day from the calendar!
</div>
</DatePicker>
current date: {startDate.toString()}
</div>
);