静态类属性声明reactno-typos中的文字错误。

问题描述 投票:1回答:1

我使用Redux创建了一个CRUD应用程序,所以,我写了代码,当导出组件时,我添加了这一行。

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

export default connect(null, { addContact })(AddContact);

但是,它显示了这个错误

./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.
reactjs redux react-redux redux-thunk
1个回答
0
投票

应该是[小键的p]

AddContact.propTypes

文档 => https:/github.comyannickcreslint-plugin-reactblobmasterdocsrulesno-typos.md。

© www.soinside.com 2019 - 2024. All rights reserved.