Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
046f17d
Clarify image loading during View Transitions (#8671)
aurorascharff Oct 6, 2026
ae5e480
Add React DevTools for agents reference page (#8694)
hoxyq Oct 20, 2026
0821e7d
docs: document fetchPriority support for preloadModule and preinitMod…
coolwent Oct 27, 2026
0f7e4ec
Fix broken React Router links in "Synchronizing with Effects" and use…
romach Nov 3, 2026
97074a1
docs: add <form> to React DOM components overview (#8717)
YashCoder-svg Nov 3, 2026
0334d1d
Update conferences: move concluded Sep 2026 events to Past, fix React…
ShakilUrRehman21 Nov 3, 2026
7ca4886
Normalize aria-labels on TeamMember social links (#8592)
deepusnath Nov 3, 2026
6be2e2a
docs: Add useOptimistic hook description to hooks reference page (#8571)
martinrebo Nov 3, 2026
5532a01
Revert "docs: Add useOptimistic hook description to hooks reference p…
aurorascharff Nov 3, 2026
ae5c052
docs: add useOptimistic to Built-in React Hooks overview (#8625)
Iitian001 Nov 3, 2026
6b0a30d
Add missing 2026 conferences (#8730)
aurorascharff Nov 4, 2026
2177e28
Fix Server Function examples for Actions, forms, and useActionState (…
smith558 Nov 4, 2026
c1178e2
Update form documentation for forms default reset behavior (#8512)
MaxwellCohen Nov 5, 2026
dc8eb1e
Fix Server Function signature and two typos in 'use server' reference…
BlackHatMan Nov 5, 2026
879fe8c
Just fix some user-visible react.dev typos (only typos in this commit…
willy-b Nov 5, 2026
02acf3b
fix(docs): remove unncessary await from dispatchAction (#8674)
yousefdawood7 Nov 5, 2026
a003952
Link special HTML components to their React reference pages (#8596)
see-stack Nov 5, 2026
89e8328
Update conference listings for 2026 (#8218)
apherio Nov 5, 2026
c763eb2
Clarify that Transition Actions can be asynchronous (#8696)
yotatameguchi-boop Nov 5, 2026
00de546
Fix wrong link targets in react-dom docs (#8599)
see-stack Nov 5, 2026
391e70b
Use relative links, without domain, in reference docs (#8712)
ShakilUrRehman21 Nov 5, 2026
1f691ff
Fix API Reference link to point to /reference/react (#8603)
see-stack Nov 5, 2026
f9e9ed3
Fix broken and incorrect reference links (#8600)
see-stack Nov 5, 2026
b87d2bd
Fix redundant /index in static API links (#8602)
see-stack Nov 5, 2026
2e6dca1
docs: explain useFormStatus with custom form actions (#8683)
Felix-ming Nov 5, 2026
dd5e98c
Fix relative links missing leading slash in Learn docs (#8568)
MyGO-Mujica Nov 7, 2026
058f805
fix: consistent note object type in Server Components docs (#8475)
Ashutosh0x Nov 7, 2026
523831c
Fix effect event name on useEffectEvent reference docs (#8303)
Amulya-Kumar Nov 7, 2026
557ce1d
Fix duplicate words in reference docs (#8626)
eknathdj Nov 7, 2026
7159560
Fix onHeaders argument type in prerenderToNodeStream docs (#8720)
hsusul Nov 7, 2026
024c049
Fix typo, memorized -> memoized in learn typescript useMemo docs (#8312)
n34k Nov 7, 2026
313083d
fix: remove unused useState import in lifecycle-of-reactive-effects (…
jahanzaib-iqbal-dev Nov 7, 2026
79e6763
Fix typo in react-labs-view-transitions-activity-and-more.md (#8357)
acutmore Nov 7, 2026
d4b8243
docs: change MutableRef to MutableRefObject in React 19 upgrade guide…
mihkeleidast Nov 7, 2026
de83f1d
Fix incorrect name of @vitejs/plugin-rsc package (#8202)
ulrichstark Nov 7, 2026
b886228
Remove unused useState import in StrictMode.md (#8190)
emersonpisoni Nov 7, 2026
4acb201
docs: fix incorrect article usage (a/an) (#8393)
seojcarlos Nov 7, 2026
e0ec287
Explain that the useState setter triggers a re-render in Quick Start …
benjaminkincses Nov 7, 2026
fb39485
fix: typo in useReducer documentation (#7314)
aaqib605 Nov 7, 2026
6fba260
Fix act() event example using button before declaration (#8593)
fbellinder Nov 7, 2026
652b25c
docs: fix typo in useActionState and remove redundant async in useTra…
0verflowed-stack Nov 7, 2026
50bdc1e
Clarify ref callback cleanup behavior in common ref docs (#8579)
smg99 Nov 8, 2026
1fb9f91
Pass options to createConnection in useEffect (#8533)
SupunSPWithana Nov 8, 2026
4089cc0
docs: add missing "of" in render tree diagram alt text (#8420)
imxv Nov 8, 2026
d013b51
typo on prerender.md (#7467)
andihaki Nov 8, 2026
331f7e3
docs: fix terminology - 'argument' to 'parameter' in tutorial (#8376)
cyphercodes Nov 8, 2026
f5fa1e8
docs: update lifecycle-of-reactive-effects.md (#8232)
jaem0629 Nov 8, 2026
0de3909
merging all conflicts
react-translations-bot Nov 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/components/MDX/TeamMember.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function GroupBadges({group}: {group: string}) {
);
}

// TODO: good alt text for images/links
// TODO: good alt text for images
export function TeamMember({
name,
title,
Expand Down Expand Up @@ -113,7 +113,7 @@ export function TeamMember({
aria-label={`${name} on Twitter`}
href={`https://twitter.com/${twitter}`}
className="hover:text-primary hover:underline dark:text-primary-dark flex flex-row items-center">
<IconTwitter className="pe-1" />
<IconTwitter className="pe-1" aria-hidden="true" />
{twitter}
</ExternalLink>
</div>
Expand All @@ -124,7 +124,7 @@ export function TeamMember({
aria-label={`${name} on Threads`}
href={`https://threads.net/${threads}`}
className="hover:text-primary hover:underline dark:text-primary-dark flex flex-row items-center">
<IconThreads className="pe-1" />
<IconThreads className="pe-1" aria-hidden="true" />
{threads}
</ExternalLink>
</div>
Expand All @@ -135,27 +135,27 @@ export function TeamMember({
aria-label={`${name} on Bluesky`}
href={`https://bsky.app/profile/${bsky}`}
className="hover:text-primary hover:underline dark:text-primary-dark flex flex-row items-center">
<IconBsky className="pe-1" />
<IconBsky className="pe-1" aria-hidden="true" />
{bsky}
</ExternalLink>
</div>
)}
{github && (
<div className="me-4">
<ExternalLink
aria-label="GitHub Profile"
aria-label={`${name} on GitHub`}
href={`https://github.com/${github}`}
className="hover:text-primary hover:underline dark:text-primary-dark flex flex-row items-center">
<IconGitHub className="pe-1" /> {github}
<IconGitHub className="pe-1" aria-hidden="true" /> {github}
</ExternalLink>
</div>
)}
{personal && (
<ExternalLink
aria-label="Personal Site"
aria-label={`${name}'s personal website`}
href={`https://${personal}`}
className="hover:text-primary hover:underline dark:text-primary-dark flex flex-row items-center">
<IconLink className="pe-1" /> {personal}
<IconLink className="pe-1" aria-hidden="true" /> {personal}
</ExternalLink>
)}
</div>
Expand Down
17 changes: 17 additions & 0 deletions src/content/blog/2023/03/16/introducing-react-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,13 @@ Quando abbiamo rilasciato React Hooks nel 2018, la documentazione sugli Hooks pr

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

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

Vediamo più da vicino cosa trovi in ciascuna sezione.

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

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

<<<<<<< HEAD
- Hooks integrati come [`useState`](/reference/react/useState).
- Componenti integrati come [`<Suspense>`](/reference/react/Suspense).
- Componenti browser integrati come [`<input>`](/reference/react-dom/components/input).
- API orientate ai framework come [`renderToPipeableStream`](/reference/react-dom/server/renderToReadableStream).
- Altre API React come [`memo`](/reference/react/memo).
=======
- Built-in Hooks like [`useState`](/reference/react/useState).
- Built-in components like [`<Suspense>`](/reference/react/Suspense).
- Built-in browser components like [`<input>`](/reference/react-dom/components/input).
- Framework-oriented APIs like [`renderToPipeableStream`](/reference/react-dom/server/renderToPipeableStream).
- Other React APIs like [`memo`](/reference/react/memo).
>>>>>>> f5fa1e82edacdf8c6bfc4dfd9cf52029a96d5fd3

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

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

</Recipes>

<<<<<<< HEAD
Alcune pagine API includono anche [Troubleshooting](/reference/react/useEffect#troubleshooting) (per problemi comuni) e [Alternatives](/reference/react-dom/findDOMNode#alternatives) (per API deprecate).
=======
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).
>>>>>>> f5fa1e82edacdf8c6bfc4dfd9cf52029a96d5fd3

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.

Expand Down
4 changes: 4 additions & 0 deletions src/content/blog/2024/04/25/react-19-upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,11 @@ const ref = useRef<number>(null);
ref.current = 1;
```

<<<<<<< HEAD
`MutableRef` è ora deprecato in favore di un unico tipo `RefObject` che `useRef` restituirà sempre:
=======
`MutableRefObject` is now deprecated in favor of a single `RefObject` type which `useRef` will always return:
>>>>>>> f5fa1e82edacdf8c6bfc4dfd9cf52029a96d5fd3

```ts
interface RefObject<T> {
Expand Down
4 changes: 4 additions & 0 deletions src/content/blog/2024/12/05/react-19.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,11 @@ Per maggiori informazioni, consulta la documentazione delle [Directives](/refere

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.

<<<<<<< HEAD
Per approfondire, consulta la documentazione delle [React Server Actions](/reference/rsc/server-actions).
=======
For more, see the docs for [React Server Actions](/reference/rsc/server-functions).
>>>>>>> f5fa1e82edacdf8c6bfc4dfd9cf52029a96d5fd3

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14273,7 +14273,11 @@ Purtroppo, alcuni hooks sono ancora difficili da pensare in termini di funzione

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.

<<<<<<< HEAD
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).
=======
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).
>>>>>>> f5fa1e82edacdf8c6bfc4dfd9cf52029a96d5fd3

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ Divulgazioni aggiuntive possono essere frustranti, ma in genere sono segno di un

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

<<<<<<< HEAD
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).
=======
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).
>>>>>>> f5fa1e82edacdf8c6bfc4dfd9cf52029a96d5fd3

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

Expand Down
67 changes: 67 additions & 0 deletions src/content/community/conferences.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Conosci una conferenza React.js locale? Aggiungila qui! (Mantieni l'elenco in or

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

<<<<<<< HEAD
### ZurichJS Conf 2026 {/*zurichjs-conf-2026*/}
September 10-11, 2026. In presenza a Zurich, Switzerland

Expand All @@ -37,6 +38,8 @@ October 23 & 26, 2026. In-person in London, UK + online (hybrid event)

[Website](https://reactadvanced.com/) - [Twitter](https://x.com/reactadvanced) - [LinkedIn](https://www.linkedin.com/showcase/react-advanced-london/)

=======
>>>>>>> f5fa1e82edacdf8c6bfc4dfd9cf52029a96d5fd3
### React Summit US 2026 {/*react-summit-us-2026*/}
November 17 & 20, 2026. In-person in New York, USA + online (hybrid event)

Expand All @@ -52,6 +55,11 @@ April 15 & 19, 2027. In-person in Singapore + online (hybrid event)

[Website](https://reactsummit.asia/) - [Twitter](https://x.com/reactsummit) - [LinkedIn](https://www.linkedin.com/showcase/reactsummit)

### React Conf Japan 2027 {/*react-conf-japan-2027*/}
April 24, 2027. In-person in Tokyo, Japan

[Website](https://reactconf.jp/) - [Twitter](https://x.com/reactconfjp)

### React Summit 2027 {/*react-summit-2027*/}
May 21 & 25, 2027. In-person in Amsterdam, Netherlands + online (hybrid event)

Expand All @@ -60,16 +68,71 @@ May 21 & 25, 2027. In-person in Amsterdam, Netherlands + online (hybrid event)

## Conferenze passate {/*past-conferences*/}

### React India 2026 {/*react-india-2026*/}
October 29-31, 2026. In-person in Goa, India

<<<<<<< HEAD
### React Conf Japan 2027 {/*react-conf-japan-2027*/}
April 24, 2027. In presenza a Tokyo, Japan

[Sito web](https://reactconf.jp/) - [Twitter](https://x.com/reactconfjp)
=======
[Website](https://www.reactindia.io/) - [Twitter](https://x.com/react_india)

### React Advanced London 2026 {/*react-advanced-london-2026*/}
October 23 & 26, 2026. In-person in London, UK + online (hybrid event)

[Website](https://reactadvanced.com/) - [Twitter](https://x.com/reactadvanced) - [LinkedIn](https://www.linkedin.com/showcase/react-advanced-london/)

### CityJS Athens 2026 {/*cityjs-athens-2026*/}
October 21-23, 2026. In-person in Athens

[Website](https://athens.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)

### React Alicante 2026 {/*react-alicante-2026*/}
Sep 24 - 26, 2026. In-person in Alicante

[Website](https://reactalicante.es//) - [Twitter](https://x.com/ReactAlicante)

### React Native Connection 2026 {/*react-native-connection-2026*/}
September 24, 2026. In-person in Paris, France

[Website](https://reactnativeconnection.io/) - [Twitter](https://x.com/ReactNativeConn) - [Bluesky](https://bsky.app/profile/reactnativeconnect.bsky.social)

### ZurichJS Conf 2026 {/*zurichjs-conf-2026*/}
September 10-11, 2026. In-person in Zurich, Switzerland

[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/)

### Render(ATL) 2026 🍑 {/*renderatl-2026-*/}
August 12-13, 2026. In-person in Atlanta, GA, USA

[Website](https://renderatl.com/) - [Twitter](https://x.com/renderATL) - [LinkedIn](https://www.linkedin.com/company/renderatl)

### React Summit 2026 {/*react-summit-2026*/}
June 12 & 16, 2026. In-person in Amsterdam, Netherlands + online (hybrid event)

[Website](https://reactsummit.com/) - [Twitter](https://x.com/reactsummit) - [LinkedIn](https://www.linkedin.com/showcase/reactsummit)

### React Norway 2026 {/*react-norway-2026*/}
June 5, 2026. In-person in Oslo, Norway

[Website](https://reactnorway.com/) - [Twitter](https://x.com/ReactNorway)

### React Miami 2026 {/*react-miami-2026*/}
April 23-24, 2026. In-person in Miami, FL, USA

[Website](https://reactmiami.com/) - [Twitter](https://x.com/ReactMiamiConf)
>>>>>>> f5fa1e82edacdf8c6bfc4dfd9cf52029a96d5fd3

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

<<<<<<< HEAD
[Sito web](https://india.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
=======
[Website](https://london.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
>>>>>>> f5fa1e82edacdf8c6bfc4dfd9cf52029a96d5fd3


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

<<<<<<< HEAD
[Sito web](https://india.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
=======
[Website](https://singapore.cityjsconf.org/) - [Twitter](https://x.com/cityjsconf) - [Bluesky](https://bsky.app/profile/cityjsconf.bsky.social)
>>>>>>> f5fa1e82edacdf8c6bfc4dfd9cf52029a96d5fd3

### React Advanced London 2025 {/*react-advanced-london-2025*/}
November 28 & December 1, 2025. In presenza a London, UK + remoto (evento ibrido)
Expand Down
4 changes: 4 additions & 0 deletions src/content/learn/describing-the-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,11 @@ React usa gli alberi per modellare le relazioni tra componenti e moduli.

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

<<<<<<< HEAD
<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'.">
=======
<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'.">
>>>>>>> f5fa1e82edacdf8c6bfc4dfd9cf52029a96d5fd3

Un esempio di albero di rendering React.

Expand Down
4 changes: 4 additions & 0 deletions src/content/learn/extracting-state-logic-into-a-reducer.md
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,11 @@ I reducer non sono privi di svantaggi! Ecco alcuni modi per confrontarli:
- **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.
- **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!

<<<<<<< HEAD
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.
=======
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.
>>>>>>> f5fa1e82edacdf8c6bfc4dfd9cf52029a96d5fd3

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

Expand Down
4 changes: 4 additions & 0 deletions src/content/learn/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,11 @@ function MyButton() {
}
```

<<<<<<< HEAD
React chiamerà di nuovo la tua funzione componente. Questa volta, `count` sarà `1`. Poi sarà `2`. E così via.
=======
Calling `setCount` tells React to call your component function again. This is called a *re-render*. This time, `count` will be `1`. Then it will be `2`. And so on.
>>>>>>> f5fa1e82edacdf8c6bfc4dfd9cf52029a96d5fd3

Se esegui il rendering dello stesso componente più volte, ognuno avrà il proprio state. Fai clic su ogni pulsante separatamente:

Expand Down
6 changes: 3 additions & 3 deletions src/content/learn/lifecycle-of-reactive-effects.md
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,7 @@ export default function App() {
```

```js {expectedErrors: {'react-compiler': [8]}} src/ChatRoom.js active
import { useState, useEffect } from 'react';
import { useEffect } from 'react';

export default function ChatRoom({ roomId, createConnection }) {
useEffect(() => {
Expand Down Expand Up @@ -1480,7 +1480,7 @@ export default function App() {
```

```js src/ChatRoom.js active
import { useState, useEffect } from 'react';
import { useEffect } from 'react';

export default function ChatRoom({ roomId, createConnection }) {
useEffect(() => {
Expand Down Expand Up @@ -1568,7 +1568,7 @@ export default function App() {
```

```js src/ChatRoom.js active
import { useState, useEffect } from 'react';
import { useEffect } from 'react';
import {
createEncryptedConnection,
createUnencryptedConnection,
Expand Down
4 changes: 4 additions & 0 deletions src/content/learn/preserving-and-resetting-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ Lo state è isolato tra i componenti. React tiene traccia di quale state apparti

## Lo state è legato a una posizione nell'albero di renderizzazione {/*state-is-tied-to-a-position-in-the-tree*/}

<<<<<<< HEAD
React costruisce [alberi di renderizzazione](/learn/understanding-your-ui-as-a-tree#the-render-tree) per la struttura dei componenti nella tua UI.
=======
React builds [render trees](/learn/understanding-your-ui-as-a-tree#the-render-tree) for the component structure in your UI.
>>>>>>> f5fa1e82edacdf8c6bfc4dfd9cf52029a96d5fd3

Quando dai state a un componente, potresti pensare che lo state "viva" dentro il componente. Ma lo state è in realtà conservato dentro React. React associa ogni pezzo di state che conserva al componente corretto in base a dove quel componente si trova nell'albero di renderizzazione.

Expand Down
2 changes: 1 addition & 1 deletion src/content/learn/react-compiler/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ However, if `expensivelyProcessAReallyLargeArrayOfObjects` is truly an expensive
- React Compiler only memoizes React components and hooks, not every function
- React Compiler's memoization is not shared across multiple components or hooks

So if `expensivelyProcessAReallyLargeArrayOfObjects` was used in many different components, even if the same exact items were passed down, that expensive calculation would be run repeatedly. We recommend [profiling](reference/react/useMemo#how-to-tell-if-a-calculation-is-expensive) first to see if it really is that expensive before making code more complicated.
So if `expensivelyProcessAReallyLargeArrayOfObjects` was used in many different components, even if the same exact items were passed down, that expensive calculation would be run repeatedly. We recommend [profiling](/reference/react/useMemo#how-to-tell-if-a-calculation-is-expensive) first to see if it really is that expensive before making code more complicated.
</DeepDive>

## Should I try out the compiler? {/*should-i-try-out-the-compiler*/}
Expand Down
Loading
Loading