1//npm i react-datepicker
2import Datepicker from "react-datepicker";
3 <Datepicker
4 required
5 selected={appDate}
6 onChange={handleChangeDate}
7 showTimeSelect
8 dateFormat="Pp"
9 className="Datepicker pa2"
10 minDate={new Date()}
11 placeholderText="Select a date"
12 calendarClassName="rasta-stripes"
13 popperModifiers={{
14 offset: {
15 enabled: true,
16 offset: "0px, 0px"
17 },
18 preventOverflow: {
19 enabled: true,
20 escapeWithReference: false,
21 boundariesElement: "scrollParent"
22 }
23 }}
24 />