diff options
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } } |