What is the currently preferred way to validate a Date prop in react?

Right now I’m using: React.PropTypes.object

This, however, is now failing the forbid-prop-types lint rule. Should I use a shape or is there some better way?

1 Answer
1

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *