# 命名规范

## 文件夹命名

{% hint style="success" %}
**推荐**：React 组件的文件夹命名都是 **大驼峰 + 单数**，其他文件夹都是 **小驼峰 + 复数**。
{% endhint %}

示例：

```
Header
Button
components
widgets
utils
states
apis
libs
```

## 文件命名

{% hint style="success" %}
**推荐**：文件命名都是 **小驼峰**，单复数看情形。
{% endhint %}

## 方法/变量命名

{% hint style="success" %}
**推荐**：方法名都是 **小驼峰**，单复数看情形。
{% endhint %}

{% hint style="success" %}
**推荐**：变量名除常量外都是 **小驼峰**，单复数看情形。
{% endhint %}

{% hint style="success" %}
**推荐**：常量名都是 **全大写字母 + 下划线分隔**，单复数看情形。
{% endhint %}

示例：

```
UNIFIED_STATES
LINES_SET_FILTER
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cosmos-x.gitbook.io/react-development-guides/1.-app-zong-lan/wen-jian-he-wen-jian-jia-shuo-ming.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
