What's the future plan for compose web , At the mo...
# compose-web
w
What's the future plan for compose web , At the moment compose uses skia , It has a huge wasm file which takes some time to load on a device , Its a huge turn off for web development with compose ui elements , Will compose UI support html rendering like flutter does or any other plans ?...
o
Compose for Web has HTML-like Composable API https://github.com/JetBrains/compose-jb/tree/master/tutorials/Web It doesn't require skiko, but it doesn't allow share the same UI code between different platforms. There is expect/actual Kotlin mechanism to achieve some code reusage, but still more code has to be written. There's no plan to render Compose UI (Compose Material, etc.) as html. What we may consider at some point is to not use skiko, but render using WebGL directly. No actual plan for now though
b
HTML CfW is great though. Think of it like vanilla react - it only allows you to manage your dom trees in a reactive way and does not provide any components/theming by itself. Then you add a component lib on top if you need it (like materialUI for react). For compose we have bootstrap-compose and #kmdc