Hi ! I had a naïve thought and I would love if som...
# compose-web
l
Hi ! I had a naïve thought and I would love if someone could tell me about it. I get that Compose Web currently uses Skia to draw on a HTML canvas (do I make a mistake here ?) Some people (myself included) would prefer sticking to DOM elements for accessibility reasons etc. What about writing a Kotlin/React wrapper using Compose API ? Making
Box
render divs,
Column
render divs with
flex-direction: column
and so on. If it was possible, we could theoretically use Compose components in browser environnement, using the DOM right ? Obviously it cannot be so easy, but I would like to know why. I've never worked on Compose before so surely there's something misunderstood. Thanks for you answers 🙏
o
There is no functional Compose for Web at the moment, however we aim at DOM based solution
👍 2
☝️ 1
m
@olonho but do you have any plans to implement a compose api solution for web? I’m asking because I’d like to reuse composable functions from Android
o
it is being evaluated, see #compose-web