We'll adjust the propTypes object like so: App.propTypes = { status: PropTypes.oneOf(["Open", "Closed"]) }; Now if anything other than the values from the ...
確定! 回上一頁