diff --git a/src/content/reference/react/useOptimistic.md b/src/content/reference/react/useOptimistic.md index 27949fe711..b37b34abdd 100644 --- a/src/content/reference/react/useOptimistic.md +++ b/src/content/reference/react/useOptimistic.md @@ -337,21 +337,21 @@ export async function submitForm() { -When the button is clicked, `setIsPending(true)` uses optimistic state to immediately show "Submitting..." and disable the button. When the Action is done, `isPending` is rendered as `false` automatically. +Quando o botão é clicado, `setIsPending(true)` usa o estado otimista para mostrar imediatamente "Submitting..." e desabilitar o botão. Quando a Ação termina, `isPending` é renderizado como `false` automaticamente. -This pattern automatically shows a pending state however `action` prop is used with `Button`: +Esse padrão mostra automaticamente um estado pendente, não importa como a prop `action` seja usada com `Button`: ```js -// Show pending state for a state update +// Mostra o state pendente para uma atualização de state