如何在我的InputWrapper中重复使用propTypes,例如input元素。 例如: class TextInput extends Component {
static propTypes = {
theme: PropTypes.oneOf(['themeOne', 'themeTwo']),
inputProps: ??? // I would like
我已经改变了我的反应,应用(基于meteorJS)到prop-types包,但我仍然得到警告Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead. 所以我觉得有任何仍然使用“旧”风格的依赖。但是,我如何找到这种依赖关系? 这
我有我的离子2码警告一个小问题: Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
我没有使用有关反应或proptypes什么,但我得到的消息 之前描述。 我的package.json: "dependencies