Hello,
Our company started using Kotlin Multiplatform to share libraries between web, mobile and backend. The problem is at least in our experience the development of the actual UI layer on the web takes significantly longer in Kotlin than using TS (just looking at the time to compile it you can see a noticeable difference).
Using Kotlin from TS is also a hassle due to suspend functions and conversions.
With this in mind, we were thinking to take a similar approach to how mobile development works and separating the actual UI from the logic behind it (similar to MVVM architecture). This way we can write all the business logic in Kotlin and just expose the state and events to TS.
1. What do you think of this idea?
2. Did anybody attempt this?
3. What libraries do you recommend that can easily interact with both Kotlin and Typescript that can handle the state and UI events (eg RxJS)?