OlympHill
React Component Convention (Grade A) logo

React Component Convention (Grade A)安全评估数据ai技能为Claude AI. 等级A. React组件文件约定覆盖结构排序,按一个组件-一个文件和分解膨胀组件。

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

这个技能提供了React组件文件约定,涉及结构排序,按一个组件-一个文件和分解膨胀组件。它在写或审查React组件时使用。约定要求一个React组件文件具有特定的结构顺序:设计定义,属性定义,函数组件定义和导入。每个文件应只包含一个组件,且小可重用的组件应分别放在文件中。当一个组件变得过大时,应将其逻辑提取到自定义钩子中,打破UI到更小的组件或将计算移到模块级的纯函数中。

主要功能

  • React组件文件结构排序约定
  • 按一个组件-一个文件约定
  • 分解膨胀组件的指南

价格

模型
Free
评分
暂无评价

使用场景

编写新React组件

使用此技能以确保组件文件遵循推荐的结构和约定。

审查现有React组件

使用此技能来验证组件文件是否符合约定并建议必要的改进。

优点 & 缺点

优点

  • 强制React组件文件具有一致的结构
  • 促进关注点分离和可读性
  • 帮助防止过于复杂的组件

缺点

  • 需要额外的开支来创建和管理多个小组件文件
  • 对于非常简单的组件可能受限制

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

Are there any potential drawbacks to using this convention?

Yes, it may require additional overhead to create and manage multiple small component files, and can be restrictive for very simple components.

Asked by Victor Nguyen · Nov 19, 2025

What are the pros of using this convention?

The pros include enforcing a consistent structure for React component files, promoting separation of concerns and readability, and helping prevent overly complex components.

Asked by Björn Karlsson · Nov 5, 2025

What are the key features of this convention?

The key features include structure ordering for React component files, one-component-per-file convention, and guidelines for splitting bloated components.

Asked by Sanjay Gupta · Oct 9, 2025

What is the React Component Convention?

The React Component Convention is a security-tested data-ai skill that provides guidelines for React component file conventions, covering structure ordering, one-component-per-file, and splitting bloated components.

Asked by Eva Horáková · Oct 7, 2025

提问

育言活动 的替代品

Manage Headers (Grade A) logo

Manage Headers (Grade A)

育言活动

专为 Claude AI 设计的安全测试开发技巧, Grade A。检查并配置 Power Pages 站点向浏览器发送的安全 headers — 内容安全策略,框架和点击劫持保护

(0)
Free
Using Git Worktrees (Grade A) logo

Using Git Worktrees (Grade A)

育言活动

安全试验的数据-AI技能 - Claude AI。A级。即将开始需要与当前工作环境隔离的功能工作,或执行实施计划前-创建隔离的git工作tree

(0)
Free
Ga4 Bigquery Schema (Grade A) logo

Ga4 Bigquery Schema (Grade A)

育言活动

为Claude AI提供了经过安全测试的数据ai技能。 Grade A. GA4 BigQuery导出模式参考 - 完整字段参考、嵌套结构、查询模式和性能提示

(0)
Free
Meta Capi (Grade A) logo

Meta Capi (Grade A)

育言活动

安全测试的数据-AI技能,专为Claude AI打造。Grade A. Meta Conversions API (CAPI) 设置指南-架构、事件类型、客户信息哈希、去重复、实现示例、AEM

(0)
Free
Callees (Grade A) logo

Callees (Grade A)

育言活动

经过安全测试的 Claude AI 开发技能。Grade A。列出函数/方法调用的直接调用图

(0)
Free
Test Module Name (Grade A) logo

Test Module Name (Grade A)

育言活动

安全测试数据-ai技能,Grade A. 名为Haskell测试模块,以同一命名空间中的测试模块命名,并在其后添加 Spec 辅助。 在编写或审阅Haskell测试模块时使用。

(0)
Free
Board Of Directors (Grade A) logo

Board Of Directors (Grade A)

育言活动

经安全检测的数据 AI 技能,适用于 Claude AI。A级。模拟五位专家董事会就重大决策进行审议。用于评估计划、架构选择、功能设计或任何决策。

(0)
Free
Advpl Mvc Avancado (Grade A) logo

Advpl Mvc Avancado (Grade A)

育言活动

安全测试的开发技能,适用于 Claude AI。Grade A。通过 PE(入口点)实现高级 MVC —— 在标准 MVC 界面(CNTA300/MATA070/MATA440/MATA460/FINA040 via *STRU)中添加自定义网格。

(0)
Free