From fc4d44c44c26d3fd6428cfeb7312fc22480b1348 Mon Sep 17 00:00:00 2001 From: zqran Date: Mon, 5 Sep 2022 23:16:58 +0800 Subject: [PATCH] [Beta] Add missing spaces (#4986) --- beta/src/pages/learn/state-as-a-snapshot.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beta/src/pages/learn/state-as-a-snapshot.md b/beta/src/pages/learn/state-as-a-snapshot.md index 3a0b5279..d3e25bef 100644 --- a/beta/src/pages/learn/state-as-a-snapshot.md +++ b/beta/src/pages/learn/state-as-a-snapshot.md @@ -64,7 +64,7 @@ label, textarea { margin-bottom: 10px; display: block; } Here's what happens when you click the button: 1. The `onSubmit` event handler executes. -2. `setIsSent(true)` sets `isSent` to `true`and queues a new render. +2. `setIsSent(true)` sets `isSent` to `true` and queues a new render. 3. React re-renders the component according to the new `isSent` value. Let's take a closer look at the relationship between state and rendering.