<Exploring Compose HTML for Server Side Rendering>...
# feed
r
Exploring Compose HTML for Server Side Rendering Something is happening in server-rendered web development. React shipped Server Components. HTMX made “hypermedia” cool again. Phoenix LiveView proved a server can push interactive UI updates without a client framework in sight. Every ecosystem seems to be rediscovering the server as a place to render UI, except one: the JVM. What if Compose, the UI […]
👍 5
👍🏻 2
K 3
p
Is the modifier API what stops standard compose being compatible with HTML? - or are there some other impediments? If it is only the modifiers API, doesn't the new compose style API be easier/possible to support using HTML?
s
No, there are more fundamental issues. Making the modifier API compatible with css styles is in fact quite simple, frameworks like Kobweb already do this.
🆗 1
a
I believe the whole snapshotmanager stuff is global. So not great for something like a LiveView clone
p
I see, thanks. AFAIR Kobweb did not support 💯% all modifiers.
I wonder if the reverse direction is possible. Like making compose-html working on top of standard compose. Sounds like a matter of just porting the components like
Div
and such.
s
For clarification, Kobweb made the design decision to provide css properties as a Modifier api, not to bridge compose modifiers to css styles. The latter just doens't work out very well for native html, unless you abstract that away entirely (like cfw via canvas). That's why not all compose modifiers exist or with different naming.
p
Gotcha thanks for the insights