Demo

1import { useState } from "react"; 
2import Datepicker from "react-tailwindcss-datepicker"; 
3
4const App = () => { 
5    const [value, setValue] = useState({ 
6        startDate: null, 
7        endDate: null
8    });
9
10    return (
11        <Datepicker 
12            value={value} 
13            onChange={newValue => setValue(newValue)}
14            showShortcuts={true}
15        /> 
16    );
17};
18
19export default App;
20