diff options
author | Go7hic <gtfx0209@gmail.com> | 2019-05-14 02:09:17 +0300 |
---|---|---|
committer | Jamie Kyle <me@thejameskyle.com> | 2019-05-14 02:09:17 +0300 |
commit | badab5b6aba05a76abeb5e87fc4c531fd1a04d68 (patch) | |
tree | 5edd83667342142304e49caeefb63fe907077bed | |
parent | a8ebecf552e19a4cd1457877173391b783a4f942 (diff) |
Update README.md (#17)
`setInput` should be setValue?
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } } |