Skip to content

Instantly share code, notes, and snippets.

@marcelmokos
Created October 16, 2019 21:08
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/ffb878e3bdb02372d5e45309d8a2122c to your computer and use it in GitHub Desktop.
Save marcelmokos/ffb878e3bdb02372d5e45309d8a2122c to your computer and use it in GitHub Desktop.
propTypes isRequired
Component.propTypes = {
requiredArray: PropTypes.array.isRequired,
requiredBool: PropTypes.bool.isRequired,
requiredFunc: PropTypes.func.isRequired,
requiredNumber: PropTypes.number.isRequired,
requiredObject: PropTypes.object.isRequired,
requiredString: PropTypes.string.isRequired,
requiredSymbol: PropTypes.symbol.isRequired,
// ...
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment