Skip to content

Commit

Permalink
Fix explanation of the useState example in 'Hooks API Reference' pa…
Browse files Browse the repository at this point in the history
…ge (#1881)
  • Loading branch information
g12i authored and sophiebits committed Mar 29, 2019
1 parent d0f2db9 commit 59c3c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/docs/hooks-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
>
Expand Down

0 comments on commit 59c3c0a

Please sign in to comment.