Skip to content

Commit f95d5a0

Browse files
authored
fix: typo 'children' linted by textlint (#999)
1 parent 33f32fd commit f95d5a0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: src/content/reference/react/Children.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export default function ReversedList({ children }) {
194194
195195
## 사용법 {/*usage*/}
196196
197-
### children 변환하기 {/*transforming-children*/}
197+
### `children` 변환하기 {/*transforming-children*/}
198198
199199
`Children.map`은 [`children` prop로 받은](/learn/passing-props-to-a-component#passing-jsx-as-children) JSX를 변환합니다.
200200
@@ -293,7 +293,7 @@ export default function RowList({ children }) {
293293
294294
<DeepDive>
295295
296-
#### children prop는 왜 항상 배열이 아닌가요? {/*why-is-the-children-prop-not-always-an-array*/}
296+
#### `children` prop는 왜 항상 배열이 아닌가요? {/*why-is-the-children-prop-not-always-an-array*/}
297297
298298
React에서 `children` prop는 *불분명한* 데이터 구조로 취급됩니다. `children`이 구조화된 방식에 의존할 수 없다는 의미입니다. 변환하거나 필터링하거나 개수를 세기 위해서는 `Children` 메서드를 사용해야 합니다.
299299
@@ -419,7 +419,7 @@ export default function SeparatorList({ children }) {
419419
420420
---
421421
422-
### children 카운팅하기 {/*counting-children*/}
422+
### `children` 카운팅하기 {/*counting-children*/}
423423
424424
`Children.count(children)`는 자식 요소의 수를 계산합니다.
425425
@@ -490,7 +490,7 @@ export default function RowList({ children }) {
490490
491491
---
492492
493-
### children 배열로 병합하기 {/*converting-children-to-an-array*/}
493+
### `children` 배열로 병합하기 {/*converting-children-to-an-array*/}
494494
495495
`Children.toArray(children)``children` 데이터 구조를 일반적인 JavaScript 배열로 변경합니다. 이것을 사용해서 [`filter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter), [`sort`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort), [`reverse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse)와 같은 배열의 내장 메서드를 조작할 수 있습니다.
496496

Diff for: src/content/reference/react/createElement.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function Greeting({ name }) {
4040

4141
* `type`: `type` 인수는 유효한 React 컴포넌트여야 합니다. 예를 들어 태그 이름 문자열 (예: 'div', 'span') 또는 React 컴포넌트(함수, 클래스, [`Fragment`](/reference/react/Fragment) 같은 특수 컴포넌트)가 될 수 있습니다.
4242

43-
* `props`: `props` 인수는 객체 또는 `null`이어야 합니다. null을 전달하면 빈 객체와 동일하게 처리됩니다. React는 전달한 `props`와 일치하는 프로퍼티를 가진 엘리먼트를 생성합니다. 전달한 `props` 객체의 `ref``key`는 특수하기 때문에 생성한 `엘리먼트`에서 `element.props.ref``element.props.key`는 사용할 수 *없다*는 점에 유의하세요. `element.ref` 또는 `element.key`로 사용할 수 있습니다.
43+
* `props`: `props` 인수는 객체 또는 `null`이어야 합니다. `null` 전달하면 빈 객체와 동일하게 처리됩니다. React는 전달한 `props`와 일치하는 프로퍼티를 가진 엘리먼트를 생성합니다. 전달한 `props` 객체의 `ref``key`는 특수하기 때문에 생성한 `element`에서 `element.props.ref``element.props.key`는 사용할 수 *없다*는 점에 유의하세요. `element.ref` 또는 `element.key`로 사용할 수 있습니다.
4444

4545
* **선택사항** `...children`: 0개 이상의 자식 노드. React 엘리먼트, 문자열, 숫자, [포탈](/reference/react-dom/createPortal), 빈 노드(`null`, `undefined`, `true`, `false`) 그리고 React 노드 배열을 포함한 모든 React 노드가 될 수 있습니다.
4646

@@ -61,7 +61,7 @@ function Greeting({ name }) {
6161

6262
* JSX를 사용한다면 **태그를 대문자로 시작해야만 사용자 컴포넌트를 렌더링할 수 있습니다.** 즉, `<Something />``createElement(Something)`과 동일하지만 `<something />`(소문자) 은 `createElement('something')`와 동일합니다. (문자열임을 주의하세요. 내장된 HTML 태그로 취급됩니다.)
6363

64-
* `createElement('h1', {}, child1, child2, child3)`와 같이 **children이 모두 정적인 경우에만 `createElement`에 여러 인수로 전달해야 합니다.** children이 동적이라면 전체 배열을 세 번째 인수로 전달해야 합니다. 이렇게 하면 React는 [누락된 ``에 대한 경고](/learn/rendering-lists#keeping-list-items-in-order-with-key)를 표시합니다. 정적 목록인 경우 재정렬하지 않기 때문에 작업이 필요하지 않습니다.
64+
* `createElement('h1', {}, child1, child2, child3)`와 같이 **`children` 모두 정적인 경우에만 `createElement`에 여러 인수로 전달해야 합니다.** `children` 동적이라면 전체 배열을 세 번째 인수로 전달해야 합니다. 이렇게 하면 React는 [누락된 ``에 대한 경고](/learn/rendering-lists#keeping-list-items-in-order-with-key)를 표시합니다. 정적 목록인 경우 재정렬하지 않기 때문에 작업이 필요하지 않습니다.
6565

6666
---
6767

0 commit comments

Comments
 (0)