Skip to content

Instantly share code, notes, and snippets.

@marcelmokos
Created October 16, 2019 21:06
Show Gist options
  • 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