Hey guys, maybe it is just me but I'm under the im...
# compose-web
t
Hey guys, maybe it is just me but I'm under the impression that "html-core" is kinda hidden, It took me some minutes to find these docs "github.com/JetBrains/compose-multiplatform/blob/…/README.md", I only became aware of this project thanks to
kobweb
, is "html-core" used by companies? Why doesn't it have a dedicated page? promoting it like something of a React alternative? Will it be maintained in the future? is it because
kobweb
is a more complete solution? I was going to start a project using CMP for Web but
html-core
is just what I need. Sorry if my questions are too naive
r
It’s not naive. Many people feel that way. There is some movement in this subject - you can check #compose-ssr. Also check https://kotlinlang.org/docs/js-frameworks.html
👀 1
h
It was promoted before WASM took off. With WASM you can share your UI code between Android, Desktop, iOS and web, if you want. html-core requires to rewrite your UI code, but I also like html-core and we use it for some websites as an alternative to React with html native support.
a
WASM canvas misses almost all browser native UX features. We use html-core in a large SPA.
m
I use Compose HTML on some projects that are in production and it works pretty well, but of course you need to go with it thinking that it is a React alternative, and not Compose Multiplatform, so you can't reuse widgets from Compose MPP
t
I believe high-level components can be shared between CMP and C-HTML by defining an extra parameter like
ui: NiceUI
being
NiceUI
an interface that provides composable components; CMP can implement those components using Material3 and C-HTML can implement them using DOM elements. That can be a way, although it might seem a little bit weird.