标签: reactjs react-proptypes
我正在尝试使用that answer中建议的styles: Text.propTypes.style。
styles: Text.propTypes.style
但是ESlint抱怨:
ESLint: Using `propTypes` from another component is not safe because they may be removed in production builds (react/forbid-foreign-prop-types)
解决这个问题的正确方法是什么?