I have some common libs and business logic in Kotl...
# javascript
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!