ocproject-jn-date-picker-react

0.1.7 • Public • Published

OC Project : Date picker library

This project was bootstrapped with Create React App. This is a date-picker library build using React and date-fns. This library is created only for academic purpose.

Installation

The package can be installed via npm:

npm install ocproject-jn-date-picker-react

or via yarn:

yarn add ocproject-jn-date-picker-react

Example

In your React project, install the package then import to use the component

import React, { useState } from "react";
import DatePicker from "ocproject-jn-date-picker-react/dist/DatePicker";

const Example = () => {
  const [selectedDate, setSelectedDate] = useState(new Date());
  
    return (<DatePicker onDatePick={date => setSelectedDate(date)}/>)
};

License

This project is free of use

Dependencies (7)

Dev Dependencies (8)

Package Sidebar

Install

npm i ocproject-jn-date-picker-react

Weekly Downloads

8

Version

0.1.7

License

UNLICENSED

Unpacked Size

11.3 kB

Total Files

6

Last publish

Collaborators

  • jacquesn