要在组件的props 上进行类型检查,你只需配置特定的 propTypes 属性:. import PropTypes from 'prop-types'; class Greeting extends ...
確定! 回上一頁