materila ui pickers code example

Example: @material-ui/pickers

import React, { Fragment, useState } from "react";
import { TextField } from "@material-ui/core";
import { MobileDatePicker, DesktopDatePicker, DatePicker } from "@material-ui/pickers";

function DatePickersVariants(props) {
  const [selectedDate, handleDateChange] = useState(new Date());

  return (
    
       handleDateChange(date)}
        renderInput={props => }
      />

       handleDateChange(date)}
        renderInput={props => }
      />

       handleDateChange(date)}
        renderInput={props => }
      />
    
  );
}

export default DatePickersVariants;

Tags:

Misc Example