0.0.2 • Published 5 years ago
native-date-picker-react v0.0.2
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'));