This package has been deprecated
Author message:
Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
date-prop-types
1.0.3 • Public • Published date-prop-types
A validator that you can use to verify that the formatted date that your React component receives has the specified format.
Installation
npm install date-prop-types --save-dev
Usage
import date from 'date-prop-types';
MyComponent.propTypes = {
hiringDate: date('YYYY-DD-MM').isRequired,
dateOfDismissal: date('YYYY-DD-MM')
};
License
This project is licensed under the MIT License
/date-prop-types/
//
Package Sidebar
Install
Weekly Downloads