커스텀 훅 설계 문서 추가#5
Open
developerjhp wants to merge 1 commit intomainfrom
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
훅 설계문서를 개요와 세부 문서로 분리했습니다Why
기존 초안은 기준과 예시가 한 페이지에 섞여 있어 문서의 역할이 흐려졌습니다. 이번 변경에서는 React 공식 문서와 Toss 공개 라이브러리에서 반복되는 기준을 바탕으로, 팀이 커스텀 훅을 언제 만들고 어디까지 책임지게 할지 빠르게 판단할 수 있도록 구조를 다시 잡았습니다.
What Changed
docs/custom-hooks/index.md: 문서 범위와 하위 지침 소개docs/custom-hooks/extraction-criteria.md: 훅 추출 기준 정리docs/custom-hooks/composition.md: 훅 합성 기준 정리docs/custom-hooks/responsibility-scope.md: 책임 범위와 반환 계약 기준 정리docs/.vitepress/config.mts: 사이드바 링크 추가