Skip to content

Instantly share code, notes, and snippets.

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