Is there anything in the kotlin-wrappers? I’m using react, reactdom and extensions
g
gildor
11/09/2017, 12:19 PM
I don't know such wrappers. But Kotlin team announced that they will release pure Kotlin networking lib that can be used on any platform including JS.
But you can easily use any JS API with the same (not exactly the same, tho) way as Kotlin JVM uses Java APIs
gildor
11/09/2017, 12:23 PM
React itself doesn't provide any networking APIs or libraries, as I know (kotlin-native does)
gildor
11/09/2017, 12:25 PM
Of course, you can use any JS lib for that, bit my 2 cents, that better for now to write own small Kotlin wrapper for XMLHttpRequest, you can even use coroutines for that.