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.
The package can be installed via npm:
or via yarn:
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)}/>)
};
This project is free of use