javascript PropTypes multiple values code example
Example: how to make proptypes either or
size: PropTypes.oneOfType([
PropTypes.string,
PropTypes.number
]),
size: PropTypes.oneOfType([
PropTypes.string,
PropTypes.number
]),