The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Add Custom propType Validation to React Components

Add Custom propType Validation to React Components

2:12
In addition to the types built into React.propTypes we can also define our own custom propType validator
Watch this lesson now
Avatar
egghead.io

In addition to the types built into React.propTypes we can also define our own custom propType validator

Avatar
Marko

Can we catch these errors somehow, for example when user inputs short string?

In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?