We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents adec435 + aece47f commit a3e2805Copy full SHA for a3e2805
README.md
@@ -40,7 +40,7 @@ import "react-datepicker/dist/react-datepicker.css";
40
const Example = () => {
41
const [startDate, setStartDate] = useState(new Date());
42
return (
43
- <DatePicker selected={startDate} onChange={(date) => setStartDate(date)} />
+ <DatePicker selected={startDate} onChange={(date:Date) => setStartDate(date)} />
44
);
45
};
46
```
0 commit comments