import React, { useState } from "react"; import { DateRange, DayPicker } from "react-day-picker"; /** * Test case for issue #1567 * * @see https://github.com/gpbl/react-day-picker/issues/1567 */ export function TestCase1567() { const [selected, setSelected] = useState({ from: new Date(2022, 8, 25), to: new Date(2022, 9, 1) }); const handleChange = (range: DateRange | undefined) => { range && setSelected(range); }; return (
); }