my-datepicker-test

0.4.7 • Public • Published

React Date Picker

Alt text

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

Readme

Keywords

Package Sidebar

Install

npm i my-datepicker-test

Weekly Downloads

78

Version

0.4.7

License

ISC

Unpacked Size

17 kB

Total Files

15

Last publish

Collaborators

  • jennifer93