From 4287f6677a7b33c349c1159de8fe5fbac83f2fa7 Mon Sep 17 00:00:00 2001 From: Nivaldo Farias Date: Mon, 20 Jan 2025 16:54:15 -0300 Subject: [PATCH] Translate `textarea.md` to pt-br --- .../react-dom/components/textarea.md | 199 +++++++++--------- 1 file changed, 99 insertions(+), 100 deletions(-) diff --git a/src/content/reference/react-dom/components/textarea.md b/src/content/reference/react-dom/components/textarea.md index 9bd29fa38..38b7cb80d 100644 --- a/src/content/reference/react-dom/components/textarea.md +++ b/src/content/reference/react-dom/components/textarea.md @@ -4,7 +4,7 @@ title: "` is not allowed. [Use `defaultValue` for initial content.](#providing-an-initial-value-for-a-text-area) -- If a text area receives a string `value` prop, it will be [treated as controlled.](#controlling-a-text-area-with-a-state-variable) -- A text area can't be both controlled and uncontrolled at the same time. -- A text area cannot switch between being controlled or uncontrolled over its lifetime. -- Every controlled text area needs an `onChange` event handler that synchronously updates its backing value. +- Passar filhos como `` não é permitido. [Use `defaultValue` para o conteúdo inicial.](#providing-an-initial-value-for-a-text-area) +- Se uma área de texto recebe uma prop string `value`, ela será [tratada como controlada.](#controlling-a-text-area-with-a-state-variable) +- Uma área de texto não pode ser controlada e não controlada ao mesmo tempo. +- Uma área de texto não pode alternar entre ser controlada ou não controlada ao longo de sua vida útil. +- Toda área de texto controlada precisa de um manipulador de eventos `onChange` que atualize sincronamente seu valor de apoio. --- -## Usage {/*usage*/} +## Uso {/*usage*/} -### Displaying a text area {/*displaying-a-text-area*/} +### Exibindo uma área de texto {/*displaying-a-text-area*/} -Render `` is not supported. +Ao contrário do HTML, passar texto inicial como `` não é suportado. --- -### Reading the text area value when submitting a form {/*reading-the-text-area-value-when-submitting-a-form*/} +### Lendo o valor da área de texto ao enviar um formulário {/*reading-the-text-area-value-when-submitting-a-form*/} -Add a [`
`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form) around your textarea with a [`