We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fee25f commit 0f92834Copy full SHA for 0f92834
src/content/learn/updating-objects-in-state.md
@@ -57,6 +57,7 @@ This example holds an object in state to represent the current pointer position.
57
58
```js
59
import { useState } from 'react';
60
+
61
export default function MovingDot() {
62
const [position, setPosition] = useState({
63
x: 0,
@@ -127,6 +128,7 @@ Notice how the red dot now follows your pointer when you touch or hover over the
127
128
129
130
131
132
133
134
0 commit comments