From 8fb5a45d60203c83305c70a74e81854fe79dcda0 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Wed, 22 Jun 2022 23:31:59 +0100 Subject: [PATCH] typo fix --- beta/src/pages/learn/you-might-not-need-an-effect.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beta/src/pages/learn/you-might-not-need-an-effect.md b/beta/src/pages/learn/you-might-not-need-an-effect.md index 16cb9653..2fd3c47b 100644 --- a/beta/src/pages/learn/you-might-not-need-an-effect.md +++ b/beta/src/pages/learn/you-might-not-need-an-effect.md @@ -1571,7 +1571,7 @@ label, textarea { margin-bottom: 10px; display: block; } -The `isSent` state variable determines whether to show the form or the "Thank you" dialog. However, you aren't sending the message because the "Thank you" dialog was _displayed_. You want to send the message because the user has _submitted the form._ Delete the misleading Effect and move the `sendMessage` call inside the `handleSubmit` event handler: +The `showForm` state variable determines whether to show the form or the "Thank you" dialog. However, you aren't sending the message because the "Thank you" dialog was _displayed_. You want to send the message because the user has _submitted the form._ Delete the misleading Effect and move the `sendMessage` call inside the `handleSubmit` event handler: