Skip to content

Commit 5e3a0f3

Browse files
committed
Resolve upstream sync conflicts for 15653c0
- Preserve Italian translations across the 25 conflicted files while importing upstream link, identifier, and code changes. - Translate new upstream content in README, conferences, learn/index, common, img, Suspense, react-dom/index, and useTransition. - Fix upstream link targets (react-dom/server, React Router, v18 docs, CityJS) and identifiers (MutableRefObject, createConnection(options)). - Verification: 0 conflict markers, git diff --check clean, all 24 changed Markdown files compile as MDX.
1 parent 530df4d commit 5e3a0f3

25 files changed

Lines changed: 62 additions & 330 deletions

‎README.md‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,8 @@ React is a project of the [React Foundation](https://react.foundation/), hosted
2121

2222
### Installation
2323

24-
<<<<<<< HEAD
2524
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.
3026
3. `yarn` to install the website's npm dependencies
3127

3228
### Running locally

‎src/components/Layout/Footer.tsx‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,8 @@ export function Footer() {
124124
<FooterLink href="https://lfprojects.org/policies/privacy-policy/">
125125
Privacy
126126
</FooterLink>
127-
<<<<<<< HEAD
128-
<FooterLink href="https://opensource.fb.com/legal/terms/">
129-
Termini
130-
=======
131127
<FooterLink href="https://lfprojects.org/policies/terms-of-use/">
132-
Terms
133-
>>>>>>> 15653c0f9b95d6c4845e614e5bcc94c7ee2128f6
128+
Termini
134129
</FooterLink>
135130
<FooterLink href="https://lfprojects.org/policies/">
136131
Policies

‎src/content/blog/2023/03/16/introducing-react-dev.md‎

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,8 @@ Quando abbiamo rilasciato React Hooks nel 2018, la documentazione sugli Hooks pr
4848

4949
**La nuova documentazione insegna React con gli Hooks fin dall'inizio.** La documentazione è divisa in due sezioni principali:
5050

51-
<<<<<<< HEAD
5251
* **[Impara React](/learn)** è un corso autogestito che insegna React da zero.
53-
* **[API Reference](/reference)** fornisce i dettagli e gli esempi d'uso per ogni API React.
54-
=======
55-
* **[Learn React](/learn)** is a self-paced course that teaches React from scratch.
56-
* **[API Reference](/reference/react)** provides the details and usage examples for every React API.
57-
>>>>>>> 15653c0f9b95d6c4845e614e5bcc94c7ee2128f6
52+
* **[API Reference](/reference/react)** fornisce i dettagli e gli esempi d'uso per ogni API React.
5853

5954
Vediamo più da vicino cosa trovi in ciascuna sezione.
6055

@@ -471,19 +466,11 @@ Abbiamo confermato con i vendor dei browser che questa rappresentazione è scien
471466

472467
Nell'[API Reference](/reference/react), ogni API React ha ora una pagina dedicata. Questo include tutti i tipi di API:
473468

474-
<<<<<<< HEAD
475469
- Hooks integrati come [`useState`](/reference/react/useState).
476470
- Componenti integrati come [`<Suspense>`](/reference/react/Suspense).
477471
- Componenti browser integrati come [`<input>`](/reference/react-dom/components/input).
478-
- API orientate ai framework come [`renderToPipeableStream`](/reference/react-dom/server/renderToReadableStream).
472+
- API orientate ai framework come [`renderToPipeableStream`](/reference/react-dom/server/renderToPipeableStream).
479473
- Altre API React come [`memo`](/reference/react/memo).
480-
=======
481-
- Built-in Hooks like [`useState`](/reference/react/useState).
482-
- Built-in components like [`<Suspense>`](/reference/react/Suspense).
483-
- Built-in browser components like [`<input>`](/reference/react-dom/components/input).
484-
- Framework-oriented APIs like [`renderToPipeableStream`](/reference/react-dom/server/renderToPipeableStream).
485-
- Other React APIs like [`memo`](/reference/react/memo).
486-
>>>>>>> 15653c0f9b95d6c4845e614e5bcc94c7ee2128f6
487474

488475
Noterai che ogni pagina API è divisa in almeno due segmenti: *Reference* e *Usage*.
489476

@@ -627,11 +614,7 @@ button { display: block; margin-top: 10px; }
627614

628615
</Recipes>
629616

630-
<<<<<<< HEAD
631-
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).
635618

636619
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.
637620

‎src/content/blog/2024/04/25/react-19-upgrade-guide.md‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -646,11 +646,7 @@ const ref = useRef<number>(null);
646646
ref.current = 1;
647647
```
648648

649-
<<<<<<< HEAD
650-
`MutableRef` è ora deprecato in favore di un unico tipo `RefObject` che `useRef` restituirà sempre:
651-
=======
652-
`MutableRefObject` is now deprecated in favor of a single `RefObject` type which `useRef` will always return:
653-
>>>>>>> 15653c0f9b95d6c4845e614e5bcc94c7ee2128f6
649+
`MutableRefObject` è ora deprecato in favore di un unico tipo `RefObject` che `useRef` restituirà sempre:
654650

655651
```ts
656652
interface RefObject<T> {

‎src/content/blog/2024/12/05/react-19.md‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -397,11 +397,7 @@ Per maggiori informazioni, consulta la documentazione delle [Directives](/refere
397397

398398
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.
399399

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).
405401

406402
## Miglioramenti in React 19 {/*improvements-in-react-19*/}
407403

‎src/content/blog/2025/04/23/react-labs-view-transitions-activity-and-more.md‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14273,11 +14273,7 @@ Purtroppo, alcuni hooks sono ancora difficili da pensare in termini di funzione
1427314273

1427414274
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.
1427514275

14276-
<<<<<<< HEAD
1427714276
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
1428114277

1428214278
Diamo un'occhiata a un esempio [dalla documentazione](/learn/lifecycle-of-reactive-effects#thinking-from-the-effects-perspective):
1428314279

‎src/content/blog/2025/12/11/denial-of-service-and-source-code-exposure-in-react-server-components.md‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,7 @@ Divulgazioni aggiuntive possono essere frustranti, ma in genere sono segno di un
8181

8282
### Framework e bundler interessati {/*affected-frameworks-and-bundlers*/}
8383

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).
8985

9086
Consulta [le istruzioni nel post precedente](/blog/2025/12/03/critical-security-vulnerability-in-react-server-components#update-instructions) per i passaggi di aggiornamento.
9187

‎src/content/community/conferences.md‎

Lines changed: 24 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,6 @@ Conosci una conferenza React.js locale? Aggiungila qui! (Mantieni l'elenco in or
1717

1818
## Prossime conferenze {/*upcoming-conferences*/}
1919

20-
<<<<<<< HEAD
21-
### ZurichJS Conf 2026 {/*zurichjs-conf-2026*/}
22-
September 10-11, 2026. In presenza a Zurich, Switzerland
23-
24-
[Sito web](https://conf.zurichjs.com?utm_campaign=ZurichJS_Conf&utm_source=referral&utm_content=reactjs_community_conferences) - [Twitter](https://x.com/zurichjs) - [LinkedIn](https://www.linkedin.com/company/zurichjs/)
25-
26-
### React Alicante 2026 {/*react-alicante-2026*/}
27-
Sep 24 - 26, 2026. In presenza a Alicante
28-
29-
[Sito web](https://reactalicante.es//) - [Twitter](https://x.com/ReactAlicante)
30-
31-
### CityJS Athens 2026 {/*cityjs-athens-2026*/}
32-
October 21-23, 2026. In presenza a Athens
33-
34-
[Sito web](https://athens.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
35-
36-
### React Advanced London 2026 {/*react-advanced-london-2026*/}
37-
October 23 & 26, 2026. In-person in London, UK + online (hybrid event)
38-
39-
[Website](https://reactadvanced.com/) - [Twitter](https://x.com/reactadvanced) - [LinkedIn](https://www.linkedin.com/showcase/react-advanced-london/)
40-
41-
=======
42-
>>>>>>> 15653c0f9b95d6c4845e614e5bcc94c7ee2128f6
4320
### React Summit US 2026 {/*react-summit-us-2026*/}
4421
November 17 & 20, 2026. In-person in New York, USA + online (hybrid event)
4522

@@ -56,9 +33,9 @@ April 15 & 19, 2027. In-person in Singapore + online (hybrid event)
5633
[Website](https://reactsummit.asia/) - [Twitter](https://x.com/reactsummit) - [LinkedIn](https://www.linkedin.com/showcase/reactsummit)
5734

5835
### React Conf Japan 2027 {/*react-conf-japan-2027*/}
59-
April 24, 2027. In-person in Tokyo, Japan
36+
April 24, 2027. In presenza a Tokyo, Japan
6037

61-
[Website](https://reactconf.jp/) - [Twitter](https://x.com/reactconfjp)
38+
[Sito web](https://reactconf.jp/) - [Twitter](https://x.com/reactconfjp)
6239

6340
### React Summit 2027 {/*react-summit-2027*/}
6441
May 21 & 25, 2027. In-person in Amsterdam, Netherlands + online (hybrid event)
@@ -69,70 +46,59 @@ May 21 & 25, 2027. In-person in Amsterdam, Netherlands + online (hybrid event)
6946
## Conferenze passate {/*past-conferences*/}
7047

7148
### React India 2026 {/*react-india-2026*/}
72-
October 29-31, 2026. In-person in Goa, India
49+
October 29-31, 2026. In presenza a Goa, India
7350

74-
<<<<<<< HEAD
75-
### React Conf Japan 2027 {/*react-conf-japan-2027*/}
76-
April 24, 2027. In presenza a Tokyo, Japan
77-
78-
[Sito web](https://reactconf.jp/) - [Twitter](https://x.com/reactconfjp)
79-
=======
80-
[Website](https://www.reactindia.io/) - [Twitter](https://x.com/react_india)
51+
[Sito web](https://www.reactindia.io/) - [Twitter](https://x.com/react_india)
8152

8253
### React Advanced London 2026 {/*react-advanced-london-2026*/}
83-
October 23 & 26, 2026. In-person in London, UK + online (hybrid event)
54+
October 23 & 26, 2026. In presenza a London, UK + online (evento ibrido)
8455

85-
[Website](https://reactadvanced.com/) - [Twitter](https://x.com/reactadvanced) - [LinkedIn](https://www.linkedin.com/showcase/react-advanced-london/)
56+
[Sito web](https://reactadvanced.com/) - [Twitter](https://x.com/reactadvanced) - [LinkedIn](https://www.linkedin.com/showcase/react-advanced-london/)
8657

8758
### CityJS Athens 2026 {/*cityjs-athens-2026*/}
88-
October 21-23, 2026. In-person in Athens
59+
October 21-23, 2026. In presenza a Athens
8960

90-
[Website](https://athens.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
61+
[Sito web](https://athens.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
9162

9263
### React Alicante 2026 {/*react-alicante-2026*/}
93-
Sep 24 - 26, 2026. In-person in Alicante
64+
Sep 24 - 26, 2026. In presenza a Alicante
9465

95-
[Website](https://reactalicante.es//) - [Twitter](https://x.com/ReactAlicante)
66+
[Sito web](https://reactalicante.es//) - [Twitter](https://x.com/ReactAlicante)
9667

9768
### React Native Connection 2026 {/*react-native-connection-2026*/}
98-
September 24, 2026. In-person in Paris, France
69+
September 24, 2026. In presenza a Paris, France
9970

100-
[Website](https://reactnativeconnection.io/) - [Twitter](https://x.com/ReactNativeConn) - [Bluesky](https://bsky.app/profile/reactnativeconnect.bsky.social)
71+
[Sito web](https://reactnativeconnection.io/) - [Twitter](https://x.com/ReactNativeConn) - [Bluesky](https://bsky.app/profile/reactnativeconnect.bsky.social)
10172

10273
### ZurichJS Conf 2026 {/*zurichjs-conf-2026*/}
103-
September 10-11, 2026. In-person in Zurich, Switzerland
74+
September 10-11, 2026. In presenza a Zurich, Switzerland
10475

105-
[Website](https://conf.zurichjs.com?utm_campaign=ZurichJS_Conf&utm_source=referral&utm_content=reactjs_community_conferences) - [Twitter](https://x.com/zurichjs) - [LinkedIn](https://www.linkedin.com/company/zurichjs/)
76+
[Sito web](https://conf.zurichjs.com?utm_campaign=ZurichJS_Conf&utm_source=referral&utm_content=reactjs_community_conferences) - [Twitter](https://x.com/zurichjs) - [LinkedIn](https://www.linkedin.com/company/zurichjs/)
10677

10778
### Render(ATL) 2026 🍑 {/*renderatl-2026-*/}
108-
August 12-13, 2026. In-person in Atlanta, GA, USA
79+
August 12-13, 2026. In presenza a Atlanta, GA, USA
10980

110-
[Website](https://renderatl.com/) - [Twitter](https://x.com/renderATL) - [LinkedIn](https://www.linkedin.com/company/renderatl)
81+
[Sito web](https://renderatl.com/) - [Twitter](https://x.com/renderATL) - [LinkedIn](https://www.linkedin.com/company/renderatl)
11182

11283
### React Summit 2026 {/*react-summit-2026*/}
113-
June 12 & 16, 2026. In-person in Amsterdam, Netherlands + online (hybrid event)
84+
June 12 & 16, 2026. In presenza a Amsterdam, Netherlands + online (evento ibrido)
11485

115-
[Website](https://reactsummit.com/) - [Twitter](https://x.com/reactsummit) - [LinkedIn](https://www.linkedin.com/showcase/reactsummit)
86+
[Sito web](https://reactsummit.com/) - [Twitter](https://x.com/reactsummit) - [LinkedIn](https://www.linkedin.com/showcase/reactsummit)
11687

11788
### React Norway 2026 {/*react-norway-2026*/}
118-
June 5, 2026. In-person in Oslo, Norway
89+
June 5, 2026. In presenza a Oslo, Norway
11990

120-
[Website](https://reactnorway.com/) - [Twitter](https://x.com/ReactNorway)
91+
[Sito web](https://reactnorway.com/) - [Twitter](https://x.com/ReactNorway)
12192

12293
### React Miami 2026 {/*react-miami-2026*/}
123-
April 23-24, 2026. In-person in Miami, FL, USA
94+
April 23-24, 2026. In presenza a Miami, FL, USA
12495

125-
[Website](https://reactmiami.com/) - [Twitter](https://x.com/ReactMiamiConf)
126-
>>>>>>> 15653c0f9b95d6c4845e614e5bcc94c7ee2128f6
96+
[Sito web](https://reactmiami.com/) - [Twitter](https://x.com/ReactMiamiConf)
12797

12898
### CityJS London 2026 {/*cityjs-london-2026*/}
12999
April 14-17, 2026. In presenza a London
130100

131-
<<<<<<< HEAD
132-
[Sito web](https://india.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
133-
=======
134-
[Website](https://london.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
135-
>>>>>>> 15653c0f9b95d6c4845e614e5bcc94c7ee2128f6
101+
[Sito web](https://london.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
136102

137103

138104
### React Paris 2026 {/*react-paris-2026*/}
@@ -149,11 +115,7 @@ February 12-13, 2026. In presenza a New Delhi, India
149115
### CityJS Singapore 2026 {/*cityjs-singapore-2026*/}
150116
February 4-6, 2026. In presenza a Singapore
151117

152-
<<<<<<< HEAD
153-
[Sito web](https://india.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
154-
=======
155-
[Website](https://singapore.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
156-
>>>>>>> 15653c0f9b95d6c4845e614e5bcc94c7ee2128f6
118+
[Sito web](https://singapore.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
157119

158120
### React Advanced London 2025 {/*react-advanced-london-2025*/}
159121
November 28 & December 1, 2025. In presenza a London, UK + remoto (evento ibrido)

‎src/content/learn/describing-the-ui.md‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -529,11 +529,7 @@ React usa gli alberi per modellare le relazioni tra componenti e moduli.
529529

530530
Un albero di renderizzazione di React è una rappresentazione delle relazioni padre e figlio tra i componenti.
531531

532-
<<<<<<< HEAD
533532
<Diagram name="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-
<Diagram name="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'.">
536-
>>>>>>> 15653c0f9b95d6c4845e614e5bcc94c7ee2128f6
537533

538534
Un esempio di albero di rendering React.
539535

‎src/content/learn/extracting-state-logic-into-a-reducer.md‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -874,11 +874,7 @@ I reducer non sono privi di svantaggi! Ecco alcuni modi per confrontarli:
874874
- **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.
875875
- **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!
876876

877-
<<<<<<< HEAD
878877
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
882878

883879
## Scrivere bene i reducer {/*writing-reducers-well*/}
884880

0 commit comments

Comments
 (0)