Answers for "date time react component"

-1

date time react component

import React, { useState } from 'react';
import DateTimePicker from 'react-datetime-picker';

function MyApp() {
  const [value, onChange] = useState(new Date());

  return (
    <div>
      <DateTimePicker
        onChange={onChange}
        value={value}
      />
    </div>
  );
}
Posted by: Guest on February-06-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language