Skip to content

Commit 07b857c

Browse files
committed
merge conflict fixes
Signed-off-by: Alessandro De Blasis <[email protected]>
1 parent dc60eaf commit 07b857c

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

content/docs/state-and-lifecycle.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,7 @@ Il metodo `componentDidMount()` viene eseguito dopo che l'output del componente
244244
}
245245
```
246246

247-
<<<<<<< HEAD
248-
Nota come salviamo l'ID del timer direttamente in `this`.
249-
=======
250-
Note how we save the timer ID right on `this` (`this.timerID`).
251-
>>>>>>> 986381c56879983269c52863d9c205c7a7ba0174
247+
Nota come salviamo l'ID del timer direttamente in `this` (`this.timerID`).
252248

253249
Mentre `this.props` viene impostato da React stesso e `this.state` ha un significato speciale, sei libero di aggiungere altri campi alla classe se hai bisogno di salvare qualcosa che non partecipa al flusso dei dati (come l'ID di un timer).
254250

content/docs/thinking-in-react.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,7 @@ Abbiamo identificato cinque componenti nella nostra applicazione. In corsivo, la
4949
4. **`RigaCategoriaProdotti` (turchese):** visualizza una testata per ogni *categoria*
5050
5. **`RigaProdotto` (rosso):** visualizza una riga per ogni *prodotto*
5151

52-
<<<<<<< HEAD
5352
Se dai un'occhiata a `TabellaProdotti`, noterai che la testata della tabella (contenente le etichette "Nome" e "Prezzo") non rappresenta un componente a se stante. Si tratta di una questione soggettiva, e ci sono argomenti validi in entrambi i sensi. In questo esempio, l'abbiamo lasciata come parte di `TabellaProdotti` perché fa parte della renderizzazione della *lista dei prodotti* che è una responsabilità di `TabellaProdotti`. Comunque, qualora questa testata dovesse diventare complessa (per esempio se volessimo aggiungere la gestione dell'ordinamento per colonna), avrebbe sicuramente senso creare un suo proprio componente `TestataTabellaProdotti`.
54-
=======
55-
If you look at `ProductTable`, you'll see that the table header (containing the "Name" and "Price" labels) isn't its own component. This is a matter of preference, and there's an argument to be made either way. For this example, we left it as part of `ProductTable` because it is part of rendering the *data collection* which is `ProductTable`'s responsibility. However, if this header grows to be complex (e.g., if we were to add affordances for sorting), it would certainly make sense to make this its own `ProductTableHeader` component.
56-
>>>>>>> 986381c56879983269c52863d9c205c7a7ba0174
5753

5854
Adesso che abbiamo identificato i componenti nella nostra bozza, ordiniamoli gerarchicamente. I componenti che appaiono all'interno di un altro componente nella bozza, devono essere loro figli nella gerarchia:
5955

@@ -79,11 +75,8 @@ Fai riferimento alla [Documentazione](/docs/) se hai bisogno di aiuto nell'esecu
7975

8076
### Un Breve Intervallo: Props vs State {#a-brief-interlude-props-vs-state}
8177

82-
<<<<<<< HEAD
83-
Esistono due tipi di "modello" dati in React: props e state. È importante capire la distinzione tra le due cose; sfoglia [la documentazione ufficiale di React](/docs/interactivity-and-dynamic-uis.html) nel caso avessi dubbi.
84-
=======
85-
There are two types of "model" data in React: props and state. It's important to understand the distinction between the two; skim [the official React docs](/docs/state-and-lifecycle.html) if you aren't sure what the difference is. See also [FAQ: What is the difference between state and props?](/docs/faq-state.html#what-is-the-difference-between-state-and-props)
86-
>>>>>>> 986381c56879983269c52863d9c205c7a7ba0174
78+
Esistono due tipi di "modello" dati in React: props e state. È importante capire la distinzione tra le due cose; sfoglia [la documentazione ufficiale di React](/docs/state-and-lifecycle.html) nel caso avessi dubbi.
79+
Puoi leggere inoltre [FAQ: What is the difference between state and props?](/docs/faq-state.html#what-is-the-difference-between-state-and-props)
8780

8881
## Passo 3: Identifica la Minima (ma completa) Rappresentazione dello Stato della UI {#step-3-identify-the-minimal-but-complete-representation-of-ui-state}
8982

0 commit comments

Comments
 (0)