Skip to content

Commit e18bb3b

Browse files
Add useState semicolon (#5823)
1 parent f68a91b commit e18bb3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/react/useState.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: useState
77
`useState` is a React Hook that lets you add a [state variable](/learn/state-a-components-memory) to your component.
88

99
```js
10-
const [state, setState] = useState(initialState)
10+
const [state, setState] = useState(initialState);
1111
```
1212

1313
</Intro>

0 commit comments

Comments
 (0)