mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 03:42:14 +00:00
Add useState semicolon (#5823)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user