我正在尝试使用propTypes来帮助输入检查/验证我应用程序中的数据。数据通过得很好,但我得到了警告;Warning: Failed prop type: The propallSubjectSubcategoriesis marked as required inOddMainPage, but its value isundefined`. 我已经阅读了一些其他的回复,但我还没有找到解决我的问题的方法。 组件 class OddMainPage extends React.Component { super(props)