I have a fun low-level question… How can I inspect...
# compose
c
I have a fun low-level question… How can I inspect the Compose attribute graph (aka. composition tree) in Kotlin/JS for an HTML layout? I really want to get to some kind of virtual representation of the DOM. (This is for a side-project where I’m running JavaScript, but I won’t actually have a DOM per-se… I’d like to use Compose to drive a virtual DOM for an alternative platform.)
c
Compose Web operates directly on the DOM, it doesn’t use a virtual DOM + diff patching like React. I don’t think it can be used outside of a browser environment, though you might be able to use an emulated/headless environment like JS test frameworks do