Title: How to validate nested proptypes with React
Open Graph Title: How to validate nested proptypes with React
X Title: How to validate nested proptypes with React
Description: Want to validate the inner properties of an object passed as a prop? I'll tell you how. (hint, DON'T use PropTypes.any or PropTypes.object)
Open Graph Description: Want to validate the inner properties of an object passed as a prop? I'll tell you how. (hint, DON'T use PropTypes.any or PropTypes.object)
X Description: Want to validate the inner properties of an object passed as a prop? I'll tell you how. (hint, DON'T use PropTypes.any or PropTypes.object)
Opengraph URL: https://www.javascriptstuff.com/validate-nested-proptypes
X: @ahfarmer
Domain: www.javascriptstuff.com
| None | Want to validate the inner properties of an object passed as a prop? I'll tell you how. (hint, DON'T use PropTypes.any or PropTypes.object) |
| title | How to validate nested proptypes with React |
| twitter:card | summary |
| twitter:creator | @ahfarmer |
| og:type | article |
| og:published_time | JavaScript Stuff |
| og:site_name | JavaScript Stuff |
| article:published_time | 2015-11-20T00:00:00.000Z |
Links:
| JavaScript StuffLevel up your JavaScript & React skills ⬆️ | https://www.javascriptstuff.com/ |
| Lists | https://www.javascriptstuff.com/lists/ |
| Articles | https://www.javascriptstuff.com/articles/ |
| React Prop Validation docs | https://facebook.github.io/react/docs/reusable-components.html |
| https://www.javascriptstuff.com/validate-nested-proptypes#to-the-rescue-shape-and-arrayof | |
| https://www.javascriptstuff.com/validate-nested-proptypes#exercise | |
| https://www.javascriptstuff.com/validate-nested-proptypes#answer | |
| github | https://github.com/ahfarmer |
| twitter. | https://twitter.com/ahfarmer |
Viewport: width=device-width, initial-scale=1.0