mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
* react-datepicker: onChange args for selectsRange
official example:
```jsx
() => {
const [startDate, setStartDate] = useState(new Date());
const [endDate, setEndDate] = useState(null);
const onChange = dates => {
const [start, end] = dates;
setStartDate(start);
setEndDate(end);
};
return (
<DatePicker
selected={startDate}
onChange={onChange}
startDate={startDate}
endDate={endDate}
selectsRange
inline
/>
);
};
```
* Update react-datepicker-tests.tsx
|
||
|---|---|---|
| .. | ||
| index.d.ts | ||
| package.json | ||
| react-datepicker-tests.tsx | ||
| tsconfig.json | ||
| tslint.json | ||