docs: specify reducer function type in useReducer hook for better typing#1299
Closed
wo-o29 wants to merge 1 commit intoreactjs:mainfrom
Closed
docs: specify reducer function type in useReducer hook for better typing#1299wo-o29 wants to merge 1 commit intoreactjs:mainfrom
wo-o29 wants to merge 1 commit intoreactjs:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
This was referenced Sep 1, 2025
lumirlumir
reviewed
Sep 1, 2025
Collaborator
lumirlumir
left a comment
There was a problem hiding this comment.
PR 작업해주셔서 감사드립니다!
다만, #1290 #1295 #1299 PR 모두 예제 코드 수정 관련 PR이라, (예제에 문제가 있다는 점은 확인했습니다.) 영어 원문을 그대로 받아오는 한국 공식 문서 특성 상 해당 내용들은 승인이 어렵습니다.
해당 내용들은 업스트림인 영어 원문 레포지토리 ( https://github.com/reactjs/react.dev )에 직접 PR을 올려서 진행해주시는 편이 더 좋을 것 같습니다. (PR이 승인 될 경우, 해당 내용들은 자동으로 한국 공식 문서로 넘어옵니다.)
이러한 이유로 부득이하게 예제 관련 PR들은 close 하도록 하겠습니다.
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.
useReducer 타입 수정
useReducer 훅에 타입을 명시적으로 지정하여 리듀서 함수가
(state: State, action: CounterAction) => State형식을 갖도록 변경했습니다.필수 확인 사항
textlint가이드선택 확인 사항