> For the complete documentation index, see [llms.txt](https://toktokhan.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://toktokhan.gitbook.io/docs/basic-guides/convention/utils/structure.md).

# Structure

hooks 폴더의 기본적인 규칙입니다.

<figure><img src="https://1168173052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9A2Jt7XcUkiyMXRHBecz%2Fuploads%2FkEBPJrcviln8FEMzY9qc%2Fimage.png?alt=media&amp;token=adf0318e-2701-4553-b56d-d786a926fe87" alt="" width="563"><figcaption></figcaption></figure>

## 문서 규칙

1. 파일명은 **kebab-case 로 작성합니다.** &#x20;
2. 파일 하나 당 하나의 타입만 명시합니다.&#x20;
3. 주석을 통해 **Example case**를 적어줍니다.&#x20;

## 파일 명시 규칙

각 파일은 다음과 같이 두가지 방식을 따릅니다.&#x20;

1. **\[대분류 폴더]** -> **\[중분류 폴더] -**> **\[기능 단위 파일.ts]**

   e.g. `modules` -> `react-query` -> `use-query-params.ts`
2. **\[대분류 폴더]** -> **\[기능 단위 파일.ts]**

   e.g. `static` -> `async-fn.ts`
