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