Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react datepicker documentation

() => {
  const [startDate, setStartDate] = useState(new Date());
  return (
    <DatePicker selected={startDate} onChange={(date) => setStartDate(date)} />
  );
};
Source by reactdatepicker.com #
 
PREVIOUS NEXT
Tagged: #react #datepicker #documentation
ADD COMMENT
Topic
Name
4+5 =