We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 267554f commit 5a020f3Copy full SHA for 5a020f3
react/core/04-forms/lecture/Counter.tsx
@@ -8,7 +8,7 @@ type Props = {
8
9
export function Counter({ count, setCount, minCount = 0 }: Props) {
10
function subtract() {
11
- if (count >= minCount) {
+ if (count > minCount) {
12
setCount(count - 1)
13
}
14
0 commit comments