Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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