react proptype arrahy elements code example
Example: how to make proptypes either or
size: PropTypes.oneOfType([
PropTypes.string,
PropTypes.number
]),
size: PropTypes.oneOfType([
PropTypes.string,
PropTypes.number
]),