react date time picker code example
Example 1: datepicker in react
//npm i react-datepicker
import Datepicker from "react-datepicker";
Example 2: react datepicker
npm install react-datepicker --save
Example 3: date picker type react
$ npm install react-day-picker --save
# or with yarn:
$ yarn add react-day-picker
Example 4: date time react component
import React, { useState } from 'react';
import DateTimePicker from 'react-datetime-picker';
function MyApp() {
const [value, onChange] = useState(new Date());
return (
);
}
Example 5: react time picker
npm i react-time-picker