Skip to content

Instantly share code, notes, and snippets.

@marcelmokos
Created October 16, 2019 21:06
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 marcelmokos/bd765afe616caf4fa1a18ed79a0ad23a to your computer and use it in GitHub Desktop.
Save marcelmokos/bd765afe616caf4fa1a18ed79a0ad23a to your computer and use it in GitHub Desktop.
propTypes
Component.propTypes = {
optionalArray: PropTypes.array,
optionalBool: PropTypes.bool,
optionalFunc: PropTypes.func,
optionalNumber: PropTypes.number,
optionalObject: PropTypes.object,
optionalString: PropTypes.string,
optionalSymbol: PropTypes.symbol,
// ...
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment