my-datepicker-test
v0.4.7
Published
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
Downloads
72
Readme
React Date Picker
Installation
The package can be installed via npm:
npm i my-datepicker-test
Configuration
OnChange
You can use onChange
event handler which fires each time some calendar date has been selected
function handleDateChange(value) {
return value;
}
<DatePicker
onChange={(value)=>{handleDateChange(value)}} //only when value has changed
/>
ClassName
You can also include a className
const class = "my-className";
<DatePicker
className={class}
onChange={(value)=>{handleDateChange(value)}}
/>
Id
You can also include an id
const id = "my-id";
<DatePicker
className={class}
id={id}
onChange={handleDateChange}
/>
Compatibility
React
We're always trying to stay compatible with the latest version of React. We can't support all older versions of React.
Latest compatible version:
- React v16.13.0: my-datepicker-test v0.4.5 and newer