aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9686534..66f4ff1 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,7 @@ import { render } from "react-dom"
function useCounter() {
let [count, setCount] = useState(0)
let decrement = () => setCount(count - 1)
- let increment = () => setCount(count - 1)
+ let increment = () => setCount(count + 1)
return { count, decrement, increment }
}