Skip to content

Commit a40d658

Browse files
committed
translate children page
1 parent 0f07e13 commit a40d658

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/content/reference/react/Children.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
2-
title: Children
2+
title: Children (Alt Eleman)
33
---
44

55
<Pitfall>
66

7-
Using `Children` is uncommon and can lead to fragile code. [See common alternatives.](#alternatives)
7+
`Children` kullanımı nadirdir ve kırılgan koda yol açabilir. [Yaygın alternatiflere bakın.](#alternatives)
88

99
</Pitfall>
1010

1111
<Intro>
1212

13-
`Children` lets you manipulate and transform the JSX you received as the [`children` prop.](/learn/passing-props-to-a-component#passing-jsx-as-children)
13+
`Children`, [`children` prop'u olarak aldığınız JSX'i değiştirmenize ve dönüştürmenize olanak tanır](/learn/passing-props-to-a-component#passing-jsx-as-children)
1414

1515
```js
1616
const mappedChildren = Children.map(children, child =>
@@ -27,38 +27,38 @@ const mappedChildren = Children.map(children, child =>
2727

2828
---
2929

30-
## Reference {/*reference*/}
30+
## Başvuru Dokümanı {/*reference*/}
3131

3232
### `Children.count(children)` {/*children-count*/}
3333

34-
Call `Children.count(children)` to count the number of children in the `children` data structure.
34+
Children veri yapısındaki alt eleman sayısını saymak için `Children.count(children)` öğesini çağırın.
3535

3636
```js src/RowList.js active
3737
import { Children } from 'react';
3838

3939
function RowList({ children }) {
4040
return (
4141
<>
42-
<h1>Total rows: {Children.count(children)}</h1>
42+
<h1>Toplam satır: {Children.count(children)}</h1>
4343
...
4444
</>
4545
);
4646
}
4747
```
4848

49-
[See more examples below.](#counting-children)
49+
[Aşağıda daha fazla örneğe bakın.](#counting-children)
5050

51-
#### Parameters {/*children-count-parameters*/}
51+
#### Parametreler {/*children-count-parameters*/}
5252

53-
* `children`: The value of the [`children` prop](/learn/passing-props-to-a-component#passing-jsx-as-children) received by your component.
53+
* `children`: Bileşeniniz tarafından alınan [`children` prop](/learn/passing-props-to-a-component#passing-jsx-as-children) değeri.
5454

5555
#### Returns {/*children-count-returns*/}
5656

57-
The number of nodes inside these `children`.
57+
Bu `children` içindeki node'ların sayısı.
5858

59-
#### Caveats {/*children-count-caveats*/}
59+
#### Uyarılar {/*children-count-caveats*/}
6060

61-
- Empty nodes (`null`, `undefined`, and Booleans), strings, numbers, and [React elements](/reference/react/createElement) count as individual nodes. Arrays don't count as individual nodes, but their children do. **The traversal does not go deeper than React elements:** they don't get rendered, and their children aren't traversed. [Fragments](/reference/react/Fragment) don't get traversed.
61+
- Boş node'lar (`null`, `undefined` ve Booleans), string'ler, sayılar ve [React elemanları](/reference/react/createElement) ayrı node'lar olarak sayılır. Arrays don't count as individual nodes, but their children do. **The traversal does not go deeper than React elements:** they don't get rendered, and their children aren't traversed. [Fragments](/reference/react/Fragment) don't get traversed.
6262

6363
---
6464

0 commit comments

Comments
 (0)