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
{{ message }}
Repository navigation
Commit 5e3a0f3
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,12 +21,8 @@ React is a project of the [React Foundation](https://react.foundation/), hosted
21
21
22
22
### Installation
23
23
24
-
<<<<<<< HEAD
25
24
1.`cd it.react.dev` to go into the project root
26
-
=======
27
-
1.`cd react.dev` to go into the project root
28
-
2.`git remote add my-fork-name https://github.com/YOUR_USERNAME/react.dev.git` to add your fork as a remote. Replace `YOUR_USERNAME` with your GitHub username. You only need to do this once.
29
-
>>>>>>> 15653c0f9b95d6c4845e614e5bcc94c7ee2128f6
25
+
2.`git remote add my-fork-name https://github.com/YOUR_USERNAME/it.react.dev.git` to add your fork as a remote. Replace `YOUR_USERNAME` with your GitHub username. You only need to do this once.
30
26
3.`yarn` to install the website's npm dependencies
Alcune pagine API includono anche [Troubleshooting](/reference/react/useEffect#troubleshooting) (per problemi comuni) e [Alternatives](/reference/react-dom/findDOMNode#alternatives) (per API deprecate).
632
-
=======
633
-
Some API pages also include [Troubleshooting](/reference/react/useEffect#troubleshooting) (for common problems) and [Alternatives](https://18.react.dev/reference/react-dom/findDOMNode#alternatives) (for deprecated APIs).
634
-
>>>>>>> 15653c0f9b95d6c4845e614e5bcc94c7ee2128f6
617
+
Alcune pagine API includono anche [Troubleshooting](/reference/react/useEffect#troubleshooting) (per problemi comuni) e [Alternatives](https://18.react.dev/reference/react-dom/findDOMNode#alternatives) (per API deprecate).
635
618
636
619
Speriamo che questo approccio renda l'API reference utile non solo per cercare un argomento, ma per vedere tutte le cose diverse che puoi fare con una data API — e come si collega alle altre.
Copy file name to clipboardExpand all lines: src/content/blog/2024/12/05/react-19.md
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -397,11 +397,7 @@ Per maggiori informazioni, consulta la documentazione delle [Directives](/refere
397
397
398
398
Le Server Actions possono essere create in Server Components e passate come props a Client Components, oppure possono essere importate e usate in Client Components.
399
399
400
-
<<<<<<< HEAD
401
-
Per approfondire, consulta la documentazione delle [React Server Actions](/reference/rsc/server-actions).
402
-
=======
403
-
For more, see the docs for [React Server Actions](/reference/rsc/server-functions).
404
-
>>>>>>> 15653c0f9b95d6c4845e614e5bcc94c7ee2128f6
400
+
Per approfondire, consulta la documentazione delle [React Server Actions](/reference/rsc/server-functions).
405
401
406
402
## Miglioramenti in React 19 {/*improvements-in-react-19*/}
Copy file name to clipboardExpand all lines: src/content/blog/2025/04/23/react-labs-view-transitions-activity-and-more.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14273,11 +14273,7 @@ Purtroppo, alcuni hooks sono ancora difficili da pensare in termini di funzione
14273
14273
14274
14274
Abbiamo scoperto che spesso la confusione deriva dall'usare un Effetto quando non ne hai bisogno. La guida [You Might Not Need an Effect](/learn/you-might-not-need-an-effect) copre molti casi in cui gli Effetti non sono la soluzione giusta. Tuttavia, anche quando un Effetto è adatto a un problema, gli Effetti possono essere ancora più difficili da capire rispetto ai lifecycle dei componenti classe.
14275
14275
14276
-
<<<<<<< HEAD
14277
14276
Crediamo che una delle ragioni della confusione sia che gli sviluppatori pensano agli Effetti dalla prospettiva del _componente_ (come un lifecycle), invece che dal punto di vista degli _Effetti_ (cosa fa l'Effetto).
14278
-
=======
14279
-
We believe one of the reasons for confusion is that developers tend to think of Effects from the _component's_ perspective (like a lifecycle), instead of the _Effects_ point of view (what the Effect does).
14280
-
>>>>>>> 15653c0f9b95d6c4845e614e5bcc94c7ee2128f6
14281
14277
14282
14278
Diamo un'occhiata a un esempio [dalla documentazione](/learn/lifecycle-of-reactive-effects#thinking-from-the-effects-perspective):
Copy file name to clipboardExpand all lines: src/content/blog/2025/12/11/denial-of-service-and-source-code-exposure-in-react-server-components.md
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,11 +81,7 @@ Divulgazioni aggiuntive possono essere frustranti, ma in genere sono segno di un
81
81
82
82
### Framework e bundler interessati {/*affected-frameworks-and-bundlers*/}
83
83
84
-
<<<<<<< HEAD
85
-
Alcuni framework e bundler React dipendevano, avevano peer dependency o includevano i pacchetti React vulnerabili. I seguenti framework e bundler React sono interessati: [next](https://www.npmjs.com/package/next), [react-router](https://www.npmjs.com/package/react-router), [waku](https://www.npmjs.com/package/waku), [@parcel/rsc](https://www.npmjs.com/package/@parcel/rsc), [@vite/rsc-plugin](https://www.npmjs.com/package/@vitejs/plugin-rsc) e [rwsdk](https://www.npmjs.com/package/rwsdk).
86
-
=======
87
-
Some React frameworks and bundlers depended on, had peer dependencies for, or included the vulnerable React packages. The following React frameworks & bundlers are affected: [next](https://www.npmjs.com/package/next), [react-router](https://www.npmjs.com/package/react-router), [waku](https://www.npmjs.com/package/waku), [@parcel/rsc](https://www.npmjs.com/package/@parcel/rsc), [@vitejs/plugin-rsc](https://www.npmjs.com/package/@vitejs/plugin-rsc), and [rwsdk](https://www.npmjs.com/package/rwsdk).
88
-
>>>>>>> 15653c0f9b95d6c4845e614e5bcc94c7ee2128f6
84
+
Alcuni framework e bundler React dipendevano, avevano peer dependency o includevano i pacchetti React vulnerabili. I seguenti framework e bundler React sono interessati: [next](https://www.npmjs.com/package/next), [react-router](https://www.npmjs.com/package/react-router), [waku](https://www.npmjs.com/package/waku), [@parcel/rsc](https://www.npmjs.com/package/@parcel/rsc), [@vitejs/plugin-rsc](https://www.npmjs.com/package/@vitejs/plugin-rsc) e [rwsdk](https://www.npmjs.com/package/rwsdk).
89
85
90
86
Consulta [le istruzioni nel post precedente](/blog/2025/12/03/critical-security-vulnerability-in-react-server-components#update-instructions) per i passaggi di aggiornamento.
Copy file name to clipboardExpand all lines: src/content/learn/describing-the-ui.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -529,11 +529,7 @@ React usa gli alberi per modellare le relazioni tra componenti e moduli.
529
529
530
530
Un albero di renderizzazione di React è una rappresentazione delle relazioni padre e figlio tra i componenti.
531
531
532
-
<<<<<<< HEAD
533
532
<Diagramname="generic_render_tree"height={250}width={500}alt="Un grafico albero con cinque nodi, con ogni nodo rappresentante un componente. Il nodo radice è posizionato in alto ed è chiamato 'Componente Radice'. Ha due frecce che si estendono in basso a due nodi chiamati 'Componente A' e 'Componente C'. Ognuna di queste frecce è etichettata con 'renderizza'. 'Componente A' ha una singola freccia 'renderizza' verso il nodo 'Componente B'. 'Componente C' ha una singola freccia 'renderizza' verso il nodo chiamato 'Componente D'.">
534
-
=======
535
-
<Diagramname="generic_render_tree"height={250}width={500}alt="A tree graph with five nodes, with each node representing a component. The root node is located at the top of the tree graph and is labelled 'Root Component'. It has two arrows extending down to two nodes labelled 'Component A' and 'Component C'. Each of the arrows is labelled with 'renders'. 'Component A' has a single 'renders' arrow to a node labelled 'Component B'. 'Component C' has a single 'renders' arrow to a node labelled 'Component D'.">
Copy file name to clipboardExpand all lines: src/content/learn/extracting-state-logic-into-a-reducer.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -874,11 +874,7 @@ I reducer non sono privi di svantaggi! Ecco alcuni modi per confrontarli:
874
874
-**Testing:** Un reducer è una funzione pura che non dipende dal tuo componente. Questo significa che puoi esportarlo e testarlo separatamente in isolamento. Anche se generalmente è meglio testare i componenti in un ambiente più realistico, per la logica di aggiornamento dello stato complessa può essere utile affermare che il tuo reducer restituisce un particolare stato per un particolare stato iniziale e azione.
875
875
-**Preferenza personale:** Ad alcune persone piacciono i reducers, ad altre no. Va bene. È una questione di preferenza. Puoi sempre passare da `useState` a `useReducer` e viceversa: sono equivalenti!
876
876
877
-
<<<<<<< HEAD
878
877
Raccomandiamo l'uso di un reducer se spesso incontri bug dovuti ad aggiornamenti errati di state in qualche componente, e desideri introdurre più struttura nel suo codice. Non devi usare i reducer per tutto: sentiti libero di combinare e variare! Puoi anche usare `useState` e `useReducer` nello stesso componente.
879
-
=======
880
-
We recommend using a reducer if you often encounter bugs due to incorrect state updates in some component, and want to introduce more structure to its code. You don't have to use reducers for everything: feel free to mix and match! You can even use `useState` and `useReducer` in the same component.
881
-
>>>>>>> 15653c0f9b95d6c4845e614e5bcc94c7ee2128f6
882
878
883
879
## Scrivere bene i reducer {/*writing-reducers-well*/}
0 commit comments