我使用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.
应该是[小键的p]
AddContact.propTypes
文档 => https:/github.comyannickcreslint-plugin-reactblobmasterdocsrulesno-typos.md。