Thread
#compose-web
    a

    Alex Nabrozidis

    1 year ago
    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 ❤️) In the meantime I'm waiting for a js sample in this repo https://github.com/JetBrains/compose-jb/ very exciting stuff and kudos to everyone involved ❤️
    altavir

    altavir

    1 year ago
    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
    jim

    jim

    1 year ago
    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.
    spierce7

    spierce7

    1 year ago
    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.
    d

    Daniele B

    1 year ago
    Will there be an attempt to “translate” the Compose Android widgets to Html/DOM for Compose Web?
    jim

    jim

    1 year ago
    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.