I'm trying to make an <uncontrolled component> for...
# react
e
I'm trying to make an uncontrolled component for a number input with kotlin-react. I need it because I want to format the text input as currency (e.g. 5 becomes "5.00"), and with it being a controlled component, I can't edit the cents very well. When I delete the last "0" the code puts it back and moves my cursor. However, I have no idea how to do an uncontrolled component in Kotlin. Any help or examples of this?
t
ref
method can be used for this case
e
Can you provide an example? It's not clear to me yet how that would work.
@turansky?
t
Example will look almost the same as in your link above