1.0.3 • Published 4 years ago
date-prop-types v1.0.3
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