required props object code example
Example 1: how to make proptypes either or
size: PropTypes.oneOfType([
PropTypes.string,
PropTypes.number
]),
Example 2: vue js default prop
props: {
name: {
type: String,
default: 'John Doe'
}
}