Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //a custom property
- let CustomProp=(props,propName,componentName) =>
- {
- let value = props[propName];
- if(typeof value ==="undefined"){
- return new Error(`El valor de la propiedad ${propName} es invalido`)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement