I have some common libs and business logic in Kotlin multiplatform. I implemented the Android Demo a...
m
I have some common libs and business logic in Kotlin multiplatform. I implemented the Android Demo app with Jetpack compose and I now need a web counterpart. It would be nice to do it in compose web but it's still in Alpha ๐Ÿ˜ž so I am kinda scared since I use WebRTC in my app ๐Ÿ˜. In your own personal experience/opinion, is easier to use React directly in KT or use the TS definitions and write the UI in TS?
a
kotlin #react is much easier as it is just react mapped into kotlin
o
Just in case you want to consider compose for web: It's close to become stable enough for production apps use cases ๐Ÿ™‚
m
Close as in "I can say with a high probability that it will become stable < 6 months"?
๐Ÿ‘Œ 1
o
yes, I confirm
just to make it clear, by stable we mean stable API without breaking changes
m
I was more concerned about running without crashing or major performance issues ๐Ÿ˜…. Any insights regarding this aspect?
o
There are no known crashes and we will try to fix ASAP any identified. We havenโ€™t experienced any major performance issues so far, however, since the framework is really young, it hasnโ€™t been used for heavy apps yet. Again, if we see critical performance issues we will work on them. We'll be glad to hear from you if you give compose-web a try ๐Ÿ™‚ or if it doesn't match your expectations for your app use cases.
m
Our plan for the long term is to use KMP everywhere and Compose wherever we can (even iOS if it will become available ๐Ÿ˜†). The less code we write and the fewer variations the better. So I think I will give it a try. Thank you very much for your input!