Skip to content

Commit aece47f

Browse files
authored
fix for typescript
if I don't do this - ide throws error for typescript #3050
1 parent e791571 commit aece47f

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)