aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorGo7hic <gtfx0209@gmail.com>2019-05-14 02:09:17 +0300
committerJamie Kyle <me@thejameskyle.com>2019-05-14 02:09:17 +0300
commitbadab5b6aba05a76abeb5e87fc4c531fd1a04d68 (patch)
tree5edd83667342142304e49caeefb63fe907077bed /README.md
parenta8ebecf552e19a4cd1457877173391b783a4f942 (diff)
Update README.md (#17)
`setInput` should be setValue?
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 3931a53..7ad6ba6 100644
--- a/README.md
+++ b/README.md
@@ -86,7 +86,7 @@ render(<App />, 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 }
}