react-auth-code-input
react-auth-code-input copied to clipboard
Prefill input by external values
Hi! Thank you for good package!
I have in my requirements prefilling input by value passed in query params of page. Component's api right now is "uncontrolled", so we can't pass value to props to render it. And we also don't bind input's state with external state, passed via props. Because of this I don't have any legit way to solve my requirement.
It looks like we could extend ref's api smth like setValue
as clearInput
.