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
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ L'uso di `Children` è poco comune e può portare a codice fragile. [Vedi le alt
17
17
18
18
<Intro>
19
19
20
-
`Children` ti permette di manipolare e trasformare il JSX che hai ricevuto come [`children` prop.](/learn/passing-props-to-a-component#passing-jsx-as-children)
20
+
`Children` ti permette di manipolare e trasformare il JSX che hai ricevuto come [prop `children`.](/learn/passing-props-to-a-component#passing-jsx-as-children)
@@ -57,7 +57,7 @@ function RowList({ children }) {
57
57
58
58
#### Parameters {/*children-count-parameters*/}
59
59
60
-
*`children`: Il valore della [`children` prop](/learn/passing-props-to-a-component#passing-jsx-as-children) ricevuto dal tuo componente.
60
+
*`children`: Il valore della [prop `children`](/learn/passing-props-to-a-component#passing-jsx-as-children) ricevuto dal tuo componente.
61
61
62
62
#### Returns {/*children-count-returns*/}
63
63
@@ -89,7 +89,7 @@ function SeparatorList({ children }) {
89
89
90
90
#### Parameters {/*children-foreach-parameters*/}
91
91
92
-
* `children`: Il valore della [`children` prop](/learn/passing-props-to-a-component#passing-jsx-as-children) ricevuto dal tuo componente.
92
+
* `children`: Il valore della [prop `children`](/learn/passing-props-to-a-component#passing-jsx-as-children) ricevuto dal tuo componente.
93
93
* `fn`: La funzione che vuoi eseguire per ogni child, simile al callback del [metodo `forEach` degli array](https://developer.mozilla.org/it/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach). Verrà chiamata con il child come primo argomento e il suo indice come secondo argomento. L'indice parte da `0` e si incrementa a ogni chiamata.
94
94
* **optional** `thisArg`: Il [valore di `this`](https://developer.mozilla.org/it/docs/Web/JavaScript/Reference/Operators/this) con cui la funzione `fn` dovrebbe essere chiamata. Se omesso, è `undefined`.
95
95
@@ -127,7 +127,7 @@ function RowList({ children }) {
127
127
128
128
#### Parameters {/*children-map-parameters*/}
129
129
130
-
* `children`: Il valore della [`children` prop](/learn/passing-props-to-a-component#passing-jsx-as-children) ricevuto dal tuo componente.
130
+
* `children`: Il valore della [prop `children`](/learn/passing-props-to-a-component#passing-jsx-as-children) ricevuto dal tuo componente.
131
131
* `fn`: La funzione di mapping, simile al callback del [metodo `map` degli array](https://developer.mozilla.org/it/docs/Web/JavaScript/Reference/Global_Objects/Array/map). Verrà chiamata con il child come primo argomento e il suo indice come secondo argomento. L'indice parte da `0` e si incrementa a ogni chiamata. Devi restituire un nodo React da questa funzione. Può essere un nodo vuoto (`null`, `undefined` o un valore booleano), una stringa, un numero, un elemento React o un array di altri nodi React.
132
132
* **optional** `thisArg`: Il [valore di `this`](https://developer.mozilla.org/it/docs/Web/JavaScript/Reference/Operators/this) con cui la funzione `fn` dovrebbe essere chiamata. Se omesso, è `undefined`.
133
133
@@ -158,7 +158,7 @@ function Box({ children }) {
158
158
159
159
#### Parameters {/*children-only-parameters*/}
160
160
161
-
* `children`: Il valore della [`children` prop](/learn/passing-props-to-a-component#passing-jsx-as-children) ricevuto dal tuo componente.
161
+
* `children`: Il valore della [prop `children`](/learn/passing-props-to-a-component#passing-jsx-as-children) ricevuto dal tuo componente.
162
162
163
163
#### Returns {/*children-only-returns*/}
164
164
@@ -187,7 +187,7 @@ export default function ReversedList({ children }) {
187
187
188
188
#### Parameters {/*children-toarray-parameters*/}
189
189
190
-
* `children`: Il valore della [`children` prop](/learn/passing-props-to-a-component#passing-jsx-as-children) ricevuto dal tuo componente.
190
+
* `children`: Il valore della [prop `children`](/learn/passing-props-to-a-component#passing-jsx-as-children) ricevuto dal tuo componente.
191
191
192
192
#### Returns {/*children-toarray-returns*/}
193
193
@@ -203,7 +203,7 @@ Restituisce un array piatto di elementi in `children`.
203
203
204
204
### Trasformare i children {/*transforming-children*/}
205
205
206
-
Per trasformare il JSX dei children che il tuo componente [riceve come `children` prop,](/learn/passing-props-to-a-component#passing-jsx-as-children) chiama `Children.map`:
206
+
Per trasformare il JSX dei children che il tuo componente [riceve come prop `children`,](/learn/passing-props-to-a-component#passing-jsx-as-children) chiama `Children.map`:
207
207
208
208
```js {6,10}
209
209
import { Children } from'react';
@@ -221,7 +221,7 @@ function RowList({ children }) {
221
221
}
222
222
```
223
223
224
-
Nell'esempio sopra, `RowList` avvolge ogni child che riceve in un contenitore `<div className="Row">`. Ad esempio, supponiamo che il componente genitore passi tre tag `<p>` come `children` prop a `RowList`:
224
+
Nell'esempio sopra, `RowList` avvolge ogni child che riceve in un contenitore `<div className="Row">`. Ad esempio, supponiamo che il componente genitore passi tre tag `<p>` come prop `children` a `RowList`:
0 commit comments