Browse Source

Fix explanation of the `useState` example in 'Hooks API Reference' page (#1881)

main
Wojtek 6 years ago
committed by Sophie Alpert
parent
commit
59c3c0a155
  1. 2
      content/docs/hooks-reference.md

2
content/docs/hooks-reference.md

@ -67,7 +67,7 @@ function Counter({initialCount}) {
}
```
The "+" and "-" buttons use the functional form, because the updated value is based on the previous value. But the "Reset" button uses the normal form, because it always sets the count back to 0.
The "+" and "-" buttons use the functional form, because the updated value is based on the previous value. But the "Reset" button uses the normal form, because it always sets the count back to the initial value.
> Note
>

Loading…
Cancel
Save