# compose-web

Alex Nabrozidis

04/09/2021, 9:15 AM
Given this ^ awesome news, is there a way for me to start toying with compose-web? I'm rebuilding parts of an app I'm working on with jetbrains/jetpack compose and I'd love to enable js support even if it's unoptimal. I want it to include it early on so at least it gives me a hint on how to go around designing the common UI parts. I've already done that part with the non-ui layer (I can't wait for kotlinx-datetime to go a bit more stable <3) In the meantime I'm waiting for a js sample in this repo very exciting stuff and kudos to everyone involved ❤️


04/09/2021, 10:37 AM
You need to remember that current compose-for-web does not use the same widgets as compose-for-desktop and compose-for android. So the framework is the same, but actual widgets are different
👍 6


04/09/2021, 3:32 PM
Yeah, it is also still very early stage. There has not even been a pre-alpha release. Unless you are interested in contributing directly to the Compose repository and helping develop Compose features (and let us know if you are!) it's probably a bit too early to be building with it.


04/09/2021, 8:43 PM
So the framework is the same, but actual widgets are different
Is this so that it’s easier to have the Compose widgets translate to HTML elements? It’d be great if there was at least an option to render directly to a canvas and share the same UI widgets on web, similar to the approach that Flutter takes.

Daniele B

04/10/2021, 6:44 PM
Will there be an attempt to “translate” the Compose Android widgets to Html/DOM for Compose Web?


04/12/2021, 1:48 AM
To be determined, probably not in the immediate future. Any of this stuff happening is probably largely determined by what the community decides to contribute. Feel free to contribute whatever you feel would be valuable.