A general question on Kotlin / React - is it ready...
# react
p
A general question on Kotlin / React - is it ready for production ? All I need to do is write a simple CRUD application with a few drop downs, checkboxes, text fields and so on. Are there mature wrapper libraries for basic form components ?
b
If it's that simple, I'd suggest to look into #kvision. It's based on bootstrap and written fully in kotlin.
👍 1
Kotlin react, however uses react js under the hood so it was production ready long ago. Js interop for existing js libs is also easy nowdays, having dukat for seemless ts interop
👍 1
p
I found trying to use dukat to make wrappers for bootstrap react really tricky, probably because I don't understand enough about what's going on. Thanks, I'll look at kvision too.
i
@Paul N im trying to use a kotlin/react app for a backend manager, I find that its a lot harder than just plain react with typescript. Theres a lot of special considerations, and you have to find out how the wrapper classes of kotlin react work. the documentation is very poor. I like playing around, but to be honest: I would not really consider any of this ready for production at all.
p
@iari That's exactly my experience. I was really hoping that having done Java for 20 years or so and Kotlin for a year, I'd finally be able to write a front end in the same language as the back end, but it looks like I'm going to be stuck with typescript too. Perhaps I'm missing something, but like you I found having to write wrapper classes a nightmare, and kind of hoped that they were all in place.
👍 1
i
yep. I don't mean to make it look super bad, I just think it needs a lot more time to be developed, better documentation. better js interop to name a few things. Just a few things ive stumbled upon within the last hour • Object.entries isnt in the standart lib ... why? • no straightforward way to make a shallow copy of dynamic objects • how do you use useState with non-primitive types
👍 1