propTypeStringRequired
= function() {
return this.type === "string";
};
This code associates the "string" type with the isRequired function and ensures that the function will be run when the type is "string".
Shortcut: ptsr
0 Comments
Add Comment
Log in to add a comment