Skip to content

Commit 250a8ae

Browse files
jaem0629lumirlumir
andauthored
docs: update tutorial-tic-tac-toe.md (#1416)
<!-- PR을 보내주셔서 감사합니다! 여러분과 같은 기여자들이 React를 더욱 멋지게 만듭니다! 기존 이슈와 관련된 PR이라면, 아래에 이슈 번호를 추가해주세요. --> # tutorial-tic-tac-toe.md 업데이트 <!-- 어떤 종류의 PR인지 상세 내용을 작성해주세요. --> 코드 주석 부분에 번역에 빠져있어 추가 번역하였습니다. ## 필수 확인 사항 - [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> --------- Co-authored-by: 루밀LuMir <rpfos@naver.com>
1 parent a5295a1 commit 250a8ae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/content/learn/tutorial-tic-tac-toe.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,15 +1346,15 @@ DOM `<button>` 엘리먼트의 `onClick` 어트리뷰트는 빌트인 컴포넌
13461346
```jsx
13471347
const squares = [null, null, null, null, null, null, null, null, null];
13481348
squares[0] = 'X';
1349-
// Now `squares` is ["X", null, null, null, null, null, null, null, null];
1349+
// 이제 `squares`는 `["X", null, null, null, null, null, null, null, null]`입니다.
13501350
```
13511351
13521352
그리고 아래는 `squares` 배열을 변형하지 않고 데이터를 변경한 경우의 모습입니다.
13531353
13541354
```jsx
13551355
const squares = [null, null, null, null, null, null, null, null, null];
13561356
const nextSquares = ['X', null, null, null, null, null, null, null, null];
1357-
// Now `squares` is unchanged, but `nextSquares` first element is 'X' rather than `null`
1357+
// 이제 `squares`는 변경되지 않았지만 `nextSquares`의 첫 번째 요소는 `null`이 아닌 `'X'`입니다.
13581358
```
13591359
13601360
최종 결과는 같지만, 원본 데이터를 직접 변형하지 않음으로써 몇 가지 이점을 얻을 수 있습니다.
@@ -1739,11 +1739,11 @@ body {
17391739
17401740
```jsx
17411741
[
1742-
// Before first move
1742+
// 첫 번째 이동 전
17431743
[null, null, null, null, null, null, null, null, null],
1744-
// After first move
1744+
// 첫 번째 이동 후
17451745
[null, null, null, null, 'X', null, null, null, null],
1746-
// After second move
1746+
// 두 번째 이동 후
17471747
[null, null, null, null, 'X', null, null, null, 'O'],
17481748
// ...
17491749
]

0 commit comments

Comments
 (0)