PropTypes.number ]) Likewise, we can specify a set of specific values that a property is allowed to take by using the oneOf method: size: PropTypes.oneOf([ ...
確定! 回上一頁