Skip to content

Commit 63edea0

Browse files
committed
translate children page
1 parent b98b4ca commit 63edea0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/content/reference/react/Children.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Otherwise, returns a flat array consisting of the nodes you've returned from the
141141
### `Children.only(children)` {/*children-only*/}
142142
143143
144-
Call `Children.only(children)` to assert that `children` represent a single React element.
144+
Alt elemanların tek bir React öğesini temsil ettiğini doğrulamak için `Children.only(children)` öğesini çağırın.
145145
146146
```js
147147
function Box({ children }) {
@@ -155,13 +155,13 @@ function Box({ children }) {
155155
156156
#### Returns {/*children-only-returns*/}
157157
158-
If `children` [is a valid element,](/reference/react/isValidElement) returns that element.
158+
Eğer `children` [geçerli bir eleman ise,](/reference/react/isValidElement) bu elemanı döndürür.
159159
160-
Otherwise, throws an error.
160+
Aksi takdirde hata verir.
161161
162-
#### Caveats {/*children-only-caveats*/}
162+
#### Uyarılar {/*children-only-caveats*/}
163163
164-
- This method always **throws if you pass an array (such as the return value of `Children.map`) as `children`.** In other words, it enforces that `children` is a single React element, not that it's an array with a single element.
164+
- Bu yöntem **`children` olarak bir dizi (örneğin, `Children.map`'in dönüş değeri) geçirirseniz her zaman hata fırlatır.** Başka bir deyişle, `children`'ın tek bir React öğesi olmasını zorunlu kılar, ancak bu bir öğe içeren bir dizi olması anlamına gelmez.
165165
166166
---
167167
@@ -188,15 +188,15 @@ export default function ReversedList({ children }) {
188188
189189
#### Uyarılar {/*children-toarray-caveats*/}
190190
191-
- Empty nodes (`null`, `undefined`, and Booleans) will be omitted in the returned array. **The returned elements' keys will be calculated from the original elements' keys and their level of nesting and position.** This ensures that flattening the array does not introduce changes in behavior.
191+
- Boş node'lar (`null`, `undefined` ve Booleans) döndürülen dizide atlanacaktır. **Döndürülen öğelerin anahtarları, orijinal öğelerin anahtarlarından, iç içe geçme düzeylerinden ve konumlarından hesaplanacaktır.** Bu, dizinin düzleştirilmesinin davranışta değişikliklere yol açmamasını sağlar.
192192
193193
---
194194
195-
## Usage {/*usage*/}
195+
## Kullanım {/*usage*/}
196196
197-
### Transforming children {/*transforming-children*/}
197+
### Children'ı dönüştürmek {/*transforming-children*/}
198198
199-
To transform the children JSX that your component [receives as the `children` prop,](/learn/passing-props-to-a-component#passing-jsx-as-children) call `Children.map`:
199+
Bileşeninizin [`children` prop`u olarak aldığı](/learn/passing-props-to-a-component#passing-jsx-as-children) JSX çocuklarını dönüştürmek için `Children.map` çağrısını yapın:
200200

201201
```js {6,10}
202202
import { Children } from 'react';
@@ -214,7 +214,7 @@ function RowList({ children }) {
214214
}
215215
```
216216

217-
In the example above, the `RowList` wraps every child it receives into a `<div className="Row">` container. For example, let's say the parent component passes three `<p>` tags as the `children` prop to `RowList`:
217+
Yukarıdaki örnekte, `RowList` aldığı her children'ı bir `<div className=Row>` konteynerine sarar. Örneğin, ana bileşenin `RowList` öğesine `children` prop'u olarak üç `<p>` etiketi ilettiğini varsayalım:
218218

219219
```js
220220
<RowList>

0 commit comments

Comments
 (0)