You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/reference/react/Children.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
---
2
-
title: Children
2
+
title: Children (Alt Eleman)
3
3
---
4
4
5
5
<Pitfall>
6
6
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)
8
8
9
9
</Pitfall>
10
10
11
11
<Intro>
12
12
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)
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.
35
35
36
36
```js src/RowList.js active
37
37
import { Children } from'react';
38
38
39
39
functionRowList({ children }) {
40
40
return (
41
41
<>
42
-
<h1>Total rows: {Children.count(children)}</h1>
42
+
<h1>Toplam satır: {Children.count(children)}</h1>
43
43
...
44
44
</>
45
45
);
46
46
}
47
47
```
48
48
49
-
[See more examples below.](#counting-children)
49
+
[Aşağıda daha fazla örneğe bakın.](#counting-children)
50
50
51
-
#### Parameters {/*children-count-parameters*/}
51
+
#### Parametreler {/*children-count-parameters*/}
52
52
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.
54
54
55
55
#### Returns {/*children-count-returns*/}
56
56
57
-
The number of nodes inside these `children`.
57
+
Bu `children` içindeki node'ların sayısı.
58
58
59
-
#### Caveats {/*children-count-caveats*/}
59
+
#### Uyarılar {/*children-count-caveats*/}
60
60
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.
0 commit comments