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