From f0ddaf71ec6710fd9119119676f9e76c83c41560 Mon Sep 17 00:00:00 2001 From: Alen Ajam Date: Sun, 30 Apr 2023 22:19:23 +0200 Subject: [PATCH 1/7] translate(adding-interactivity): added content translation --- src/content/learn/adding-interactivity.md | 102 +++++++++++----------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/src/content/learn/adding-interactivity.md b/src/content/learn/adding-interactivity.md index 501c9f620..f51806a14 100644 --- a/src/content/learn/adding-interactivity.md +++ b/src/content/learn/adding-interactivity.md @@ -1,30 +1,30 @@ --- -title: Adding Interactivity +title: Aggiungere le Interazioni --- -Some things on the screen update in response to user input. For example, clicking an image gallery switches the active image. In React, data that changes over time is called *state.* You can add state to any component, and update it as needed. In this chapter, you'll learn how to write components that handle interactions, update their state, and display different output over time. +Alcune cose sullo schermo si aggiornano in risposta all'input dell'utente. Ad esempio, cliccare su una galleria d'immagini modifica l'immagine corrente. In React, i dati che cambiano nel tempo vengono chiamati *state.* Puoi aggiungere lo state a qualsiasi componente e aggiornarlo secondo necessità. In questo capitolo, imparerai a scrivere componenti che gestiscono interazioni, aggiornano il loro state, e visualizzano diversi output nel tempo. -* [How to handle user-initiated events](/learn/responding-to-events) -* [How to make components "remember" information with state](/learn/state-a-components-memory) -* [How React updates the UI in two phases](/learn/render-and-commit) -* [Why state doesn't update right after you change it](/learn/state-as-a-snapshot) -* [How to queue multiple state updates](/learn/queueing-a-series-of-state-updates) -* [How to update an object in state](/learn/updating-objects-in-state) -* [How to update an array in state](/learn/updating-arrays-in-state) +* [Come gestire gli eventi originati dall'utente](/learn/responding-to-events) +* [Come far "ricordare" le informazioni ai componenti tramite lo state](/learn/state-a-components-memory) +* [Come React aggiorna la UI in due fasi](/learn/render-and-commit) +* [Perché lo state non si aggiorna subito dopo averlo modificato](/learn/state-as-a-snapshot) +* [Come accodare più aggiornamenti dello state](/learn/queueing-a-series-of-state-updates) +* [Come aggiornare un oggetto nello state](/learn/updating-objects-in-state) +* [Come aggiornare un array nello state](/learn/updating-arrays-in-state) -## Responding to events {/*responding-to-events*/} +## Rispondere agli Eventi {/*responding-to-events*/} -React lets you add *event handlers* to your JSX. Event handlers are your own functions that will be triggered in response to user interactions like clicking, hovering, focusing on form inputs, and so on. +React ti consente di aggiungere degli *event handler* al tuo JSX. Gli event handler sono le tue funzioni personalizzate che vengono chiamate in risposta alle interazioni dell'utente, come il click, il passaggio del mouse, la messa a fuoco delle input e così via. -Built-in components like `