How can we reset the input value? #4
Answered
by
andreaswilli
kozak-iz-kh
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
andreaswilli
Jun 9, 2021
Replies: 3 comments
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
Starting from version const [value, setValue] = useState("");
// ...
<VerificationInput value={value} onChange={setValue} />
<button onClick={() => setValue("")}>reset</button> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
andreaswilli
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Starting from version
2.0.0
the value can be modified from the outside via thevalue
prop: