Skip to content

Commit

Permalink
Add useState semicolon (#5823)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliaksandrsen authored Mar 25, 2023
1 parent f68a91b commit e18bb3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/reference/react/useState.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: useState
`useState` is a React Hook that lets you add a [state variable](/learn/state-a-components-memory) to your component.

```js
const [state, setState] = useState(initialState)
const [state, setState] = useState(initialState);
```

</Intro>
Expand Down

0 comments on commit e18bb3b

Please sign in to comment.