react-date-input
- React Input component for date
- This allows user to input date by using numbers in given format.
- Supported formats are MM/DD/YYYY and DD/MM/YYYY.
- LeftArrow to go to left date section
- RightArrow to go to right date section
- UpArrow to decrement the selected date section
- DownArrow to increment the selected date section
- Tabs to jump to next date section
- Backspace/Delete to reset the selected date section.
Installation
npm install react-controlled-date-input
usage
;;; Component { superprops; thisstate = year: "" month: "" date: "" ; } { this; } { let year month date = thisstate; if!!!year year = "YYYY"; if!!!month month = "MM"; if!!!date date = "DD"; return <div> <DateInputComponent onChange=thisonChange dateFormat=DateFormatsDDMMYYYY/> <label>Date <h3>`//`</h3></label> </div> ; } ReactDOM;