Hi everyone, I just finished a post on creating Web Components in Kotlin, even by using Compose HTML:
• great encapsulation of Kotlin/JS and Compose HTML inside a custom HTML component
• attribute changes are handled as StateFlows inside the component, and as such as State inside Compose
• only include 1 script in your final page and render the custom component
https://avwie.github.io/web-components-in-kotlin