Skip to content

Instantly share code, notes, and snippets.

@codewithbernard
Created July 27, 2021 16:02
Show Gist options
  • Save codewithbernard/a80af7550add34ba3309a039210ba269 to your computer and use it in GitHub Desktop.
Save codewithbernard/a80af7550add34ba3309a039210ba269 to your computer and use it in GitHub Desktop.
Person.propTypes = {
name: PropTypes.string.isRequired,
age: PropTypes.number.isRequired,
friends: PropTypes.arrayOf(PropTypes.string),
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment