Skip to content

Commit 0f92834

Browse files
authored
fix: add missing blank lines between import statements and code blocks in sample code (#7126)
1 parent 8fee25f commit 0f92834

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/learn/updating-objects-in-state.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ This example holds an object in state to represent the current pointer position.
5757

5858
```js
5959
import { useState } from 'react';
60+
6061
export default function MovingDot() {
6162
const [position, setPosition] = useState({
6263
x: 0,
@@ -127,6 +128,7 @@ Notice how the red dot now follows your pointer when you touch or hover over the
127128

128129
```js
129130
import { useState } from 'react';
131+
130132
export default function MovingDot() {
131133
const [position, setPosition] = useState({
132134
x: 0,

0 commit comments

Comments
 (0)