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
olonho
03/08/2021, 9:19 AM
There is no functional Compose for Web at the moment, however we aim at DOM based solution
👍 2
☝️ 1
m
Marcin Środa
03/09/2021, 10:28 AM
@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