Browse Source

[Beta] Add missing spaces (#4986)

main
zqran 3 years ago
committed by GitHub
parent
commit
fc4d44c44c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beta/src/pages/learn/state-as-a-snapshot.md

2
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.

Loading…
Cancel
Save