prop-types
https://github.com/facebook/prop-types
JavaScript
Runtime type checking for React props and similar objects
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
JavaScript not yet supported1 Subscribers
Add a CodeTriage badge to prop-types
Help out
- Issues
- Add support of `instanceOf` for functional components or create new `componentOf` check
- null props considered differently in getDefaultProps vs. isRequired
- Environment testers
- mapOf and setOf validators
- disallow null
- Improve PropTypes.shape warning
- There should be a way to validate the "shape" of an array.
- Add prop type for Refs
- PropTypes.exact for all props has errors
- checkPropTypes: add argument that allows external logging
- Docs
- JavaScript not yet supported