小编vij*_*lot的帖子

静态类属性声明中的错别字反应/无错别字

我使用 Redux 创建了一个 CRUD 应用程序,因此,我编写了代码,并在导出组件时添加了以下行:

AddContact.PropTypes = {
  addContact: PropTypes.func.isRequired
};

export default connect(null, { addContact })(AddContact);
Run Code Online (Sandbox Code Playgroud)

但是,它显示了这个错误

./src/components/contact/AddContact.js
  Line 461:12:  Typo in static class property declaration  react/no-typos
Search for the keywords to learn more about each error.
Run Code Online (Sandbox Code Playgroud)

reactjs redux redux-thunk react-redux

5
推荐指数
2
解决办法
1万
查看次数

标签 统计

react-redux ×1

reactjs ×1

redux ×1

redux-thunk ×1