Anyone knows how to work on forms in React with Ko...
# javascript
m
Anyone knows how to work on forms in React with Kotlin? I found view on Thinker but this approach is not working (no value property on input). Probably because API changed. https://github.com/Kotlin/kotlin-fullstack-sample/blob/master/frontend/src/org/jetbrains/demo/thinkter/Register.kt
m
I have project build. I don't know how to work on forms
input, textArea etc
k
I don't know whether Kotlin library engineers sit here
You can try to create issues in corresponding projects on github
Here's another library with react wrappers for Kotlin: https://github.com/JetBrains/kotlin-wrappers
m
I am using react.dom
k
You can try something like this:
Copy code
input {
                        attrs { 
                            value = "123"
                        }
                    }
m
Close, but this should be ok:
Copy code
attrs { 
    onChangeFunction = {
        
    }
}
Thanks 🙂