Skip to content

Instantly share code, notes, and snippets.

@codewithbernard
Created July 27, 2021 16:02
Show Gist options
  • Save codewithbernard/80bb76c35058b8fefd8bffe0f0d5da34 to your computer and use it in GitHub Desktop.
Save codewithbernard/80bb76c35058b8fefd8bffe0f0d5da34 to your computer and use it in GitHub Desktop.
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