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/learn/describing-the-ui.md
+14-29Lines changed: 14 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,6 @@ React è una libreria JavaScript per il rendering delle interfacce utente(UI). L
10
10
11
11
<YouWillLearnisChapter={true}>
12
12
13
-
<<<<<<< HEAD
14
13
*[Come scrivere il tuo primo componente React](/learn/your-first-component)
15
14
*[Quando e come creare file multi-componente](/learn/importing-and-exporting-components)
16
15
*[Come aggiungere markup a JavaScript con JSX](/learn/writing-markup-with-jsx)
@@ -19,17 +18,7 @@ React è una libreria JavaScript per il rendering delle interfacce utente(UI). L
19
18
*[Come rappresentare condizionalmente i componenti](/learn/conditional-rendering)
20
19
*[Come renderizzare più componenti contemporaneamente](/learn/rendering-lists)
21
20
*[Come evitare bug confusionari mantenendo i componenti puri](/learn/keeping-components-pure)
22
-
=======
23
-
*[How to write your first React component](/learn/your-first-component)
24
-
*[When and how to create multi-component files](/learn/importing-and-exporting-components)
25
-
*[How to add markup to JavaScript with JSX](/learn/writing-markup-with-jsx)
26
-
*[How to use curly braces with JSX to access JavaScript functionality from your components](/learn/javascript-in-jsx-with-curly-braces)
27
-
*[How to configure components with props](/learn/passing-props-to-a-component)
28
-
*[How to conditionally render components](/learn/conditional-rendering)
29
-
*[How to render multiple components at a time](/learn/rendering-lists)
30
-
*[How to avoid confusing bugs by keeping components pure](/learn/keeping-components-pure)
31
-
*[Why understanding your UI as trees is useful](/learn/understanding-your-ui-as-a-tree)
32
-
>>>>>>> 4bdb87b172a7723d56d03a5630c8a9870f6f03ec
21
+
*[Perché è utile capire che la UI è un albero](/learn/understanding-your-ui-as-a-tree)
33
22
34
23
</YouWillLearn>
35
24
@@ -373,7 +362,7 @@ Leggi **[Rendering Condizionale](/learn/conditional-rendering)** per imparare i
373
362
374
363
</LearnMore>
375
364
376
-
## Rendering di Liste {/*rendering-lists*/}
365
+
## Rendering di Liste {/*rendering-lists*/}
377
366
378
367
Spesso si desidera visualizzare più componenti simili da una raccolta di dati. È possibile utilizzare i metodi `filter()` e `map()` di JavaScript con React per filtrare e trasformare l'array di dati in un array di componenti.
379
368
@@ -534,42 +523,38 @@ Leggi **[Mantenere i Componenti Puri](/learn/keeping-components-pure)** per impa
534
523
535
524
</LearnMore>
536
525
537
-
<<<<<<< HEAD
538
-
## Qual è il Prossimo Passo? {/*whats-next*/}
539
-
=======
540
-
## Your UI as a tree {/*your-ui-as-a-tree*/}
526
+
## La tua UI é un albero {/*your-ui-as-a-tree*/}
541
527
542
-
React uses trees to model the relationships between components and modules.
528
+
React usa gli alberi per modellare le relazioni tra componenti e moduli.
543
529
544
-
A React render tree is a representation of the parent and child relationship between components.
530
+
Un albero di renderizzazione di React è una rappresentazione delle relazioni padre e figlio tra i componenti.
545
531
546
-
<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 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'.">
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'.">
547
533
548
-
An example React render tree.
534
+
Un esempio di albero di rendering React.
549
535
550
536
</Diagram>
551
537
552
-
Components near the top of the tree, near the root component, are considered top-level components. Components with no child components are leaf components. This categorization of components is useful for understanding data flow and rendering performance.
538
+
I componenti vicino alla parte alta dell'albero, vicini al nodo radice, sono considerati componenti di alto livello. I componenti senza componenti figli sono componenti foglia. Questa categorizzazione dei componenti è utile per capire il flusso dati e le prestazioni di rendering.
553
539
554
-
Modelling the relationship between JavaScript modules is another useful way to understand your app. We refer to it as a module dependency tree.
540
+
Modellare le rezazioni tra moduli JavaScript è un altro modo utile per capire la tua app. Ci riferiamo ad essa come un albero di dipendenze tra moduli.
555
541
556
-
<Diagramname="generic_dependency_tree"height={250}width={500}alt="A tree graph with five nodes. Each node represents a JavaScript module. The top-most node is labelled 'RootModule.js'. It has three arrows extending to the nodes: 'ModuleA.js', 'ModuleB.js', and 'ModuleC.js'. Each arrow is labelled as 'imports'. 'ModuleC.js' node has a single 'imports' arrow that points to a node labelled 'ModuleD.js'.">
542
+
<Diagramname="generic_dependency_tree"height={250}width={500}alt="Un grafico albero con cinque nodi. Ogni nodo rappresenta un modulo JavaScript. Il nodo più in alto è chiamato 'RootModule.js'. Ha tre frecce che si estendono ai nodi: 'ModuleA.js', 'ModuleB.js', e 'ModuleC.js'. Ogni freccia è etichettata con 'importa'. Il nodo 'ModuleC.js' ha una singola freccia 'importa' che punta al nodo chiamato 'ModuleD.js'.">
557
543
558
-
An example module dependency tree.
544
+
Un esempio di albero di dipendenze tra moduli.
559
545
560
546
</Diagram>
561
547
562
-
A dependency tree is often used by build tools to bundle all the relevant JavaScript code for the client to download and render. A large bundle size regresses user experience for React apps. Understanding the module dependency tree is helpful to debug such issues.
548
+
Un albero di dipendenze è spesso usato da tools di compilazione per raggruppare tutto il codice JavaScript necessario al client da scaricare e renderizzare sotto forma di 'bundle'. Un 'bundle' di dimensioni elevate peggiora l'esperienza utente delle apps React. Capire l'albero di dipensenze tra moduli è utile per diagnosticare queste problematiche.
Read**[Your UI as a Tree](/learn/understanding-your-ui-as-a-tree)**to learn how to create a render and module dependency trees for a React app and how they're useful mental models for improving user experience and performance.
552
+
Leggi**[La tua UI è un albero](/learn/understanding-your-ui-as-a-tree)**per imparare a creare albero di renderizzazione e di dipendenza tra moduli nelle applicazioni React e come sono utili modelli mentali per migliorare l'esperienza utente e le prestazioni.
567
553
568
554
</LearnMore>
569
555
570
556
571
-
## What's next? {/*whats-next*/}
572
-
>>>>>>> 4bdb87b172a7723d56d03a5630c8a9870f6f03ec
557
+
## Qual è il Prossimo Passo? {/*whats-next*/}
573
558
574
559
Vai a [Il Tuo Primo Componente](/learn/your-first-component) per iniziare a leggere questa pagina del capitolo pagina per pagina!
0 commit comments