diff --git a/beta/package.json b/beta/package.json
index 5fdec38465..199b710806 100644
--- a/beta/package.json
+++ b/beta/package.json
@@ -17,7 +17,7 @@
"start": "next start"
},
"dependencies": {
- "@codesandbox/sandpack-react": "^0.1.15",
+ "@codesandbox/sandpack-react": "^0.1.16",
"@docsearch/react": "3.0.0-alpha.41",
"@docsearch/css": "3.0.0-alpha.41",
"@headlessui/react": "^1.3.0",
@@ -75,7 +75,7 @@
"reading-time": "^1.2.0",
"remark": "^12.0.1",
"remark-external-links": "^7.0.0",
- "remark-html": "^12.0.0",
+ "remark-html": "^13.0.2",
"remark-images": "^2.0.0",
"remark-unwrap-images": "^2.0.0",
"retext": "^7.0.1",
diff --git a/beta/src/pages/learn/choosing-the-state-structure.md b/beta/src/pages/learn/choosing-the-state-structure.md
index d0f3d1d993..a452c97c12 100644
--- a/beta/src/pages/learn/choosing-the-state-structure.md
+++ b/beta/src/pages/learn/choosing-the-state-structure.md
@@ -26,7 +26,7 @@ When you write a component that holds some state, you'll have to make choices ab
4. **Avoid duplication in state.** When the same data is duplicated between multiple state variables, or within nested objects, it is difficult to keep them in sync. Reduce duplication when you can.
5. **Avoid deeply nested state.** Deeply hierarchical state is not very convenient to update. When possible, prefer to structure state in a flat way.
-The goal behind these principles is to *make state easy to update without introducing mistakes*. Removing redundant and duplicate data from state helps ensure that different pieces of it don't get out of sync. This is similar to how a database engineer might want to ["normalize" the database structure](https://docs.microsoft.com/en-us/office/troubleshoot/access/database-normalization-description) to reduce the chance of bugs. To paraphrase Albert Einstein, **"Make your state as simple as it can be--but no simpler."**
+The goal behind these principles is to *make state easy to update without introducing mistakes*. Removing redundant and duplicate data from state helps ensure that all its pieces stay in sync. This is similar to how a database engineer might want to ["normalize" the database structure](https://docs.microsoft.com/en-us/office/troubleshoot/access/database-normalization-description) to reduce the chance of bugs. To paraphrase Albert Einstein, **"Make your state as simple as it can be--but no simpler."**
Now let's see how these principles apply in action.
@@ -47,7 +47,7 @@ Or this?
const [position, setPosition] = useState({ x: 0, y: 0 });
```
-Technically, you can use either of these approaches. But **if some two state variables always change together, it might be a good idea to unify them into a single state variable**. Then you won't forget to always keep them in sync, like in this example where hovering updates both of the red dot's coordinates:
+Technically, you can use either of these approaches. But **if some two state variables always change together, it might be a good idea to unify them into a single state variable**. Then you won't forget to always keep them in sync, like in this example where moving the cursor updates both coordinates of the red dot:
Sent!
+ return Thanks for feedback!
}
return (