1import React, { useState } from 'react';
2import DatePicker from 'react-date-picker';
3
4function MyApp() {
5 const [value, onChange] = useState(new Date());
6
7 return (
8 <div>
9 <DatePicker
10 onChange={onChange}
11 value={value}
12 />
13 </div>
14 );
15}