Component name "User" should always be multi-word
时间: 2023-09-24 15:04:25 浏览: 63
react-multi-select:使用和用于React构建的Multi Select组件
根据引用\[1\]中的规则,组件名"User"应该是多个单词组成的。这是为了遵循驼峰式命名的规范。所以,建议将"User"改为类似"UserComponent"或"UserPage"这样的多个单词组成的组件名。这样可以提高代码的可读性和可维护性。
#### 引用[.reference_title]
- *1* [在 vue eslint 报错 error “Component name “*****“ should always be multi-word”,该怎么办?](https://blog.csdn.net/qq_57587705/article/details/124674660)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [Vue项目报错: Component name “xxx“ should always be multi-word vue/multi-word-component-names](https://blog.csdn.net/qq_40787608/article/details/125288188)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文