Can you use kotlin-react with Compose web?
# react
s
Can you use kotlin-react with Compose web?
b
Yes, but the experience is subpar. Same as with CfD and Swing
I think there's an example somewhere in the repo
s
What is cfd?
This will improve in the future, right?
b
Apologies, Compose for Desktop
s
The experience for the developer or the user?
You are talking about React Native on desktop?
b
And no, it will not improve as it's bridging two independent UI frameworks
s
So what about compose for web?
b
I gave CfD only as an example. CfD + Swing is similar to CfW + React in a sense that two separate UI frameworks are used in a single app
i.e. bridged
s
React has its own components that you can use from Kotlin? I am just getting into the web dev world.
b
You can, but it will be painful as both, CfW and react have their own separate rendering cycles and state that you'll have to sync up
s
So what is the best UI component framework to use with Kotlin?
b
There's none at the moment, but you could try bootstrap-compose or #kmdc if you're desperate. Both of them are experimental for now.
t
Also you can use MUI wrappers from kotlin-wrappers
b
Not with compose, though. At least not without pain 😀