Browse Source

Add useState semicolon (#5823)

main
Aliaksandr 2 years ago
committed by GitHub
parent
commit
e18bb3b257
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/content/reference/react/useState.md

2
src/content/reference/react/useState.md

@ -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. `useState` is a React Hook that lets you add a [state variable](/learn/state-a-components-memory) to your component.
```js ```js
const [state, setState] = useState(initialState) const [state, setState] = useState(initialState);
``` ```
</Intro> </Intro>

Loading…
Cancel
Save