Hi, I'm an experienced app developer and have used Kotlin Multiplatform for Android & iOS successfully for some time now. I've experimented with using Compose Multiplatform for those platforms. Still, I have found the best success using KMP for the logic and implementing UI natively on Android and iOS.
I've been looking more into web development lately and need some help figuring out how Kotlin JS fits into the picture. I've seen some documentation on using Kotlin to build complete web apps with frameworks like KVision, fritz2, or Doodle. However, I have yet to find much documentation or best practices on integrating common code into more industry-standard web frameworks like React, Angular, or Vue JS.
With some digging, I found out that you can export common Kotlin code to Typescript and consume that in the framework of your choosing, with some JsExport annotations and the generateTypeScriptDefinitions gradle function. However, given how much digging I had to do to find that, I wonder if that's a recommended approach. The generateTypeScriptDefinitions function seems to have been experimental for years, and its YouTrack issues seem to have been stale for many years.
Could someone help me discover how Kotlin Js fits into modern web development?