oneOf (['Test1', 'Test2']),. 我們可以接受一個類的實例:. PropTypes.instanceOf(Something). 我們可以接受任何React節點:. PropTypes.node. 甚至根本沒有任何類型:.
確定! 回上一頁