Created
July 27, 2021 16:02
-
-
Save codewithbernard/80bb76c35058b8fefd8bffe0f0d5da34 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Person.propTypes = { | |
friends: PropTypes.arrayOf(PropTypes.string), | |
father: PropTypes.shape({ | |
name: PropTypes.string, | |
age: PropTypes.number, | |
}), | |
dog: PropTypes.exact({ | |
name: PropTypes.string, | |
age: PropTypes.number, | |
}), | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment