Skip to content

Instantly share code, notes, and snippets.

@coryhouse
Created October 26, 2017 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coryhouse/ea5d13cedf1aa3d088dfec10fb3c5bcc to your computer and use it in GitHub Desktop.
Save coryhouse/ea5d13cedf1aa3d088dfec10fb3c5bcc to your computer and use it in GitHub Desktop.
MyComponent.PropTypes = {
customer: PropTypes.shape({
id: PropTypes.number,
firstName: PropTypes.string.isRequired,
middleName: PropTypes.string.isRequired,
lastName: PropTypes.string.isRequired
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment