Skip to content

Commit f9324ab

Browse files
authored
fix: duplicate typo in useSyncExternalStore (#1380)
<!-- PR을 보내주셔서 감사합니다! 여러분과 같은 기여자들이 React를 더욱 멋지게 만듭니다! 기존 이슈와 관련된 PR이라면, 아래에 이슈 번호를 추가해주세요. --> issue #1377 # <!-- 제목을 작성해주세요. --> <!-- 어떤 종류의 PR인지 상세 내용을 작성해주세요. --> [`useSyncExternalStore`](https://ko.react.dev/reference/react/useSyncExternalStore#subscribing-to-an-external-store) 문서에서 함수 부분에만 코드 블럭으로 감싸도록 수정했습니다. ### AS-IS 1. `subscribe 함수`는 store에 구독하고 구독을 취소하는 함수를 반환해야 합니다. 2. `getSnapshot 함수` 함수는 store에서 데이터의 스냅샷을 읽어야 합니다. ### TO-BE 1. `subscribe` 함수는 store에 구독하고 구독을 취소하는 함수를 반환해야 합니다. 2. `getSnapshot` 함수는 store에서 데이터의 스냅샷을 읽어야 합니다. ## 필수 확인 사항 - [x] [기여자 행동 강령 규약<sup>Code of Conduct</sup>](https://github.com/reactjs/ko.react.dev/blob/main/CODE_OF_CONDUCT.md) - [x] [기여 가이드라인<sup>Contributing</sup>](https://github.com/reactjs/ko.react.dev/blob/main/CONTRIBUTING.md) - [x] [공통 스타일 가이드<sup>Universal Style Guide</sup>](https://github.com/reactjs/ko.react.dev/blob/main/wiki/universal-style-guide.md) - [x] [번역을 위한 모범 사례<sup>Best Practices for Translation</sup>](https://github.com/reactjs/ko.react.dev/blob/main/wiki/best-practices-for-translation.md) - [x] [번역 용어 정리<sup>Translate Glossary</sup>](https://github.com/reactjs/ko.react.dev/blob/main/wiki/translate-glossary.md) - [x] [`textlint` 가이드<sup>Textlint Guide</sup>](https://github.com/reactjs/ko.react.dev/blob/main/wiki/textlint-guide.md) - [x] [맞춤법 검사<sup>Spelling Check</sup>](https://nara-speller.co.kr/speller/) ## 선택 확인 사항 - [ ] 번역 초안 작성<sup>Draft Translation</sup> - [ ] 리뷰 반영<sup>Resolve Reviews</sup>
1 parent 997ec2a commit f9324ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/reference/react/useSyncExternalStore.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ function TodosApp() {
101101
102102
store에 있는 데이터의 <CodeStep step={3}>snapshot</CodeStep>을 반환합니다. 두 개의 함수를 인수로 전달해야 합니다.
103103
104-
1. <CodeStep step={1}>`subscribe` 함수</CodeStep> store에 구독하고 구독을 취소하는 함수를 반환해야 합니다.
105-
2. <CodeStep step={2}>`getSnapshot` 함수</CodeStep> 함수는 store에서 데이터의 스냅샷을 읽어야 합니다.
104+
1. <CodeStep step={1}>`subscribe`</CodeStep> 함수는 store에 구독하고 구독을 취소하는 함수를 반환해야 합니다.
105+
2. <CodeStep step={2}>`getSnapshot`</CodeStep> 함수는 store에서 데이터의 스냅샷을 읽어야 합니다.
106106
107107
React는 이 함수를 사용해 컴포넌트를 store에 구독한 상태로 유지하고 변경 사항이 있을 때 리렌더링합니다.
108108

0 commit comments

Comments
 (0)