JSPM

  • Created
  • Published
  • Downloads 44
  • Score
    100M100P100Q80217F
  • License MIT

React ready picker components for dates and time (month picker, week picker, day picker)

Package Exports

  • react-datetime-pickers

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-datetime-pickers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-datetime-pickers

React ready picker components for dates and time (month picker, week picker, day picker)

NPM Downloads JavaScript Style Guide

calendar time

Install

npm install --save react-datetime-pickers

or

yarn install react-datetime-pickers

Usage

import React, {useState} from 'react';

import DateTimePicker from 'react-datetime-pickers';
import 'react-datetime-pickers/dist/index.css';

export default function Example() {
    const [date, setDate] = useState(new Date());
    
    return (
        <DateTimePicker
            selected={date}
            onChange={setDate}
        />
    );
}

License

MIT © mauriziocarella