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
Ora puoi utilizzare JSX in qualsiasi tag `<script>` aggiungendovi l'attributo `type="text/babel"`. Questo è [un file HTML di esempio con JSX](https://raw.githubusercontent.com/reactjs/reactjs.org/master/static/html/single-file-example.html) che puoi scaricare ed utilizzare per i tuoi esperimenti.
164
-
=======
165
-
Now you can use JSX in any `<script>` tag by adding `type="text/babel"` attribute to it. Here is [an example HTML file with JSX](https://raw.githubusercontent.com/reactjs/reactjs.org/main/static/html/single-file-example.html) that you can download and play with.
166
-
>>>>>>> 0bb0303fb704147452a568472e968993f0729c28
162
+
Ora puoi utilizzare JSX in qualsiasi tag `<script>` aggiungendovi l'attributo `type="text/babel"`. Questo è [un file HTML di esempio con JSX](https://raw.githubusercontent.com/reactjs/reactjs.org/main/static/html/single-file-example.html) che puoi scaricare ed utilizzare per i tuoi esperimenti.
167
163
168
164
Questo approccio va bene per imparare e creare demo semplici. Tuttavia, rende lento il tuo sito e **non è adatto per la produzione**. Quando sei pronto ad andare oltre, rimuovi questo nuovo tag `<script>` e gli attributi `type="text/babel"` che avevi aggiunto. Al loro posto, nella prossima sezione configurerai un preprocessore che convertirà tutti i tuoi tag `<script>` automaticamente.
Copy file name to clipboardExpand all lines: content/docs/getting-started.md
+2-10
Original file line number
Diff line number
Diff line change
@@ -38,11 +38,7 @@ React è stato progettato sin dal principio per la sua graduale adozione, per qu
38
38
39
39
Se ti interessa giocare con il codice React, puoi utilizzare uno dei "Parchi Giochi" disponibili online. Prova un template "Hello World" su [CodePen](codepen://hello-world), [CodeSandbox](https://codesandbox.io/s/new), o [Stackblitz](https://stackblitz.com/fork/react).
40
40
41
-
<<<<<<< HEAD
42
-
Se invece preferisci utilizzare il tuo editor di testo, puoi [scaricare questo file HTML](https://raw.githubusercontent.com/reactjs/reactjs.org/master/static/html/single-file-example.html), modificarlo ed aprirlo nel tuo browser dal tuo filesystem. Dato che viene eseguita una lenta trasformazione del codice a runtime, raccomandiamo l'uso di questa modalità solo per semplici demo.
43
-
=======
44
-
If you prefer to use your own text editor, you can also [download this HTML file](https://raw.githubusercontent.com/reactjs/reactjs.org/main/static/html/single-file-example.html), edit it, and open it from the local filesystem in your browser. It does a slow runtime code transformation, so we'd only recommend using this for simple demos.
45
-
>>>>>>> 0bb0303fb704147452a568472e968993f0729c28
41
+
Se invece preferisci utilizzare il tuo editor di testo, puoi [scaricare questo file HTML](https://raw.githubusercontent.com/reactjs/reactjs.org/main/static/html/single-file-example.html), modificarlo ed aprirlo nel tuo browser dal tuo filesystem. Dato che viene eseguita una lenta trasformazione del codice a runtime, raccomandiamo l'uso di questa modalità solo per semplici demo.
46
42
47
43
### Aggiungere React ad un Sito {#add-react-to-a-website}
48
44
@@ -119,11 +115,7 @@ Il [blog di React](/blog/) è la fonte ufficiale per gli aggiornamenti dal team
119
115
120
116
Puoi inoltre seguire l'[account @reactjs](https://twitter.com/reactjs) su Twitter, ma non ti perderai nulla di essenziale leggendo solo il blog.
121
117
122
-
<<<<<<< HEAD
123
-
Non tutte le release di React meritano un blog post, potrai comunque trovare la lista dei cambiamenti per ogni release nel file [`CHANGELOG.md` nella repository di React](https://github.com/facebook/react/blob/master/CHANGELOG.md), oltre che nella pagina [Releases](https://github.com/facebook/react/releases).
124
-
=======
125
-
Not every React release deserves its own blog post, but you can find a detailed changelog for every release in the [`CHANGELOG.md` file in the React repository](https://github.com/facebook/react/blob/main/CHANGELOG.md), as well as on the [Releases](https://github.com/facebook/react/releases) page.
126
-
>>>>>>> 0bb0303fb704147452a568472e968993f0729c28
118
+
Non tutte le release di React meritano un blog post, potrai comunque trovare la lista dei cambiamenti per ogni release nel file [`CHANGELOG.md` nella repository di React](https://github.com/facebook/react/blob/main/CHANGELOG.md), oltre che nella pagina [Releases](https://github.com/facebook/react/releases).
Copy file name to clipboardExpand all lines: content/docs/lifting-state-up.md
+1-5
Original file line number
Diff line number
Diff line change
@@ -324,10 +324,6 @@ Spostare lo stato in alto nella gerarchia implica la scrittura di un codice più
324
324
325
325
Se qualcosa può essere derivato da props o stato, probabilmente non dovrebbe essere nello stato. Ad esempio, invece di memorizzare sia `valoreCelsius` che `valoreFahrenheit`, memorizziamo solo l'ultima `temperatura` modificata e la sua `scala`. Il valore dell'altro input può sempre essere calcolato da loro nel metodo `render()`. Questo ci consente di cancellare o applicare l'arrotondamento all'altro campo senza perdere precisione nell'input dell'utente.
326
326
327
-
<<<<<<< HEAD
328
-
Quando vedi qualcosa di sbagliato nell'interfaccia utente, puoi utilizzare [React Developer Tools](https://github.com/facebook/react/tree/master/packages/react-devtools) per ispezionare le props e spostarti nell'albero finché non si trova il componente responsabile dell'aggiornamento dello stato. Questo ti permette di tracciare i bug alla loro fonte:
329
-
=======
330
-
When you see something wrong in the UI, you can use [React Developer Tools](https://github.com/facebook/react/tree/main/packages/react-devtools) to inspect the props and move up the tree until you find the component responsible for updating the state. This lets you trace the bugs to their source:
331
-
>>>>>>> 0bb0303fb704147452a568472e968993f0729c28
327
+
Quando vedi qualcosa di sbagliato nell'interfaccia utente, puoi utilizzare [React Developer Tools](https://github.com/facebook/react/tree/main/packages/react-devtools) per ispezionare le props e spostarti nell'albero finché non si trova il componente responsabile dell'aggiornamento dello stato. Questo ti permette di tracciare i bug alla loro fonte:
332
328
333
329
<imgsrc="../images/docs/react-devtools-state.gif"alt="Monitoring State in React DevTools"max-width="100%"height="100%">
0 commit comments