showing results for - "date time react component"
Roberto
01 Nov 2018
1import React, { useState } from 'react';
2import DateTimePicker from 'react-datetime-picker';
3
4function MyApp() {
5  const [value, onChange] = useState(new Date());
6
7  return (
8    <div>
9      <DateTimePicker
10        onChange={onChange}
11        value={value}
12      />
13    </div>
14  );
15}