Browse Source

or => and (#1311)

main
Misha Moroshko 6 years ago
committed by Sophie Alpert
parent
commit
017dd6523f
  1. 2
      content/docs/hooks-state.md

2
content/docs/hooks-state.md

@ -258,7 +258,7 @@ function ExampleWithManyStates() {
const [todos, setTodos] = useState([{ text: 'Learn Hooks' }]);
```
In the above component, we have `age`, `fruit`, or `todos` as local variables, and we can update them individually:
In the above component, we have `age`, `fruit`, and `todos` as local variables, and we can update them individually:
```js
function handleOrangeClick() {

Loading…
Cancel
Save