Skip to content

Commit a3e2805

Browse files
Merge pull request #3385 from johndpope/patch-1
fix for typescript
2 parents adec435 + aece47f commit a3e2805

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import "react-datepicker/dist/react-datepicker.css";
4040
const Example = () => {
4141
const [startDate, setStartDate] = useState(new Date());
4242
return (
43-
<DatePicker selected={startDate} onChange={(date) => setStartDate(date)} />
43+
<DatePicker selected={startDate} onChange={(date:Date) => setStartDate(date)} />
4444
);
4545
};
4646
```

0 commit comments

Comments
 (0)