propTypes 使用來規範元件Props的型別與必需狀態var Test = React. ... oneOf(['foo', 'bar']) // 其中一個字串 React.PropTypes.oneOfType([React.
確定! 回上一頁