From fe2181bb734ca7f450b8edae52d10e06882f1bee Mon Sep 17 00:00:00 2001 From: Ayrton Date: Fri, 27 Jun 2025 11:48:09 -0300 Subject: [PATCH] Translate adding-interactivity.md to Portuguese --- next-env.d.ts | 3 +- src/content/learn/adding-interactivity.md | 104 +++++++++++----------- 2 files changed, 54 insertions(+), 53 deletions(-) diff --git a/next-env.d.ts b/next-env.d.ts index 3cd7048ed..52e831b43 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,6 +1,5 @@ /// /// -/// // NOTE: This file should not be edited -// see https://nextjs.org/docs/app/api-reference/config/typescript for more information. +// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information. diff --git a/src/content/learn/adding-interactivity.md b/src/content/learn/adding-interactivity.md index c74c6b1b9..2c6c160bf 100644 --- a/src/content/learn/adding-interactivity.md +++ b/src/content/learn/adding-interactivity.md @@ -1,30 +1,30 @@ --- -title: Adding Interactivity +title: Adicionando Interatividade --- -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. +Alguns elementos na tela se atualizam em resposta às entradas do usuário. Por exemplo, ao clicar em uma galeria de imagens, a imagem ativa é trocada. Em React, os dados que mudam ao longo do tempo são chamados de *state.* Você pode adicionar states a qualquer componente, e atualizá-los quando necessário. Neste capítulo, você aprenderá como escrever componentes que gerenciam interações, atualizam seus states, e apresentam diferentes saídas ao longo do 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) +* [Como manipular eventos acionados pelo usuário](/learn/responding-to-events) +* [Como fazer os componentes "memorizarem" informações com o state](/learn/state-a-components-memory) +* [Como o React atualiza a UI em duas fases](/learn/render-and-commit) +* [Porque o state não atualiza logo após ser alterado](/learn/state-as-a-snapshot) +* [Como enfileirar múltiplas atualizações no state](/learn/queueing-a-series-of-state-updates) +* [Como atualizar um objeto no state](/learn/updating-objects-in-state) +* [Como atualizar um array no state](/learn/updating-arrays-in-state) -## Responding to events {/*responding-to-events*/} +## Respondendo a eventos {/*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. +Componentes embutidos, a exemplo do `