From badab5b6aba05a76abeb5e87fc4c531fd1a04d68 Mon Sep 17 00:00:00 2001 From: Go7hic Date: Tue, 14 May 2019 07:09:17 +0800 Subject: Update README.md (#17) `setInput` should be setValue? --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3931a53..7ad6ba6 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ render(, document.getElementById("root")) import { createContainer } from "unstated-next" function useCustomHook() { - let [value, setInput] = useState() + let [value, setValue] = useState() let onChange = e => setValue(e.currentTarget.value) return { value, onChange } } -- cgit v1.2.3