onChange function with useInput #1487
-
I feel like I'm missing something, but I can't figure out how to pass an onChange type callback function using useInput so I can use the value in a parent component? I can't find anything in the docs. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I ended up using a useEffect with a |
Beta Was this translation helpful? Give feedback.
-
@iantbarker not sure what you are trying to do... something like this? https://codesandbox.io/s/react-day-picker-useinput-forked-i9c5ue?file=/index.js |
Beta Was this translation helpful? Give feedback.
@iantbarker not sure what you are trying to do... something like this? https://codesandbox.io/s/react-day-picker-useinput-forked-i9c5ue?file=/index.js