npm.io
0.0.2 • Published 7 years ago

native-date-picker-react

Licence
—
Version
0.0.2
Deps
3
Size
27 kB
Vulns
1
Weekly
0

Native Date Picker React

A fun little date picker that will eventually offer more features than the traditional HTML date picker.

Installing

npm install --save native-date-picker-react

Usage

Currently there is only one event that is usageable for the Native Date Picker React.

onChange - Returns an object with the ISO date.

import React from 'react';
import ReactDOM from 'react-dom';
import DatePicker from 'native-date-picker-react'

function handleOnChange(date) {
  console.log(date);
}

ReactDOM.render(<DatePicker onChange={handleOnChange} />, document.getElementById('root'));