What are you guys currently using the web target f...
# compose-web
g
What are you guys currently using the web target for? I really want to start using it since I personally can't stand JS, but I've kinda been waiting on Safari to eventually get wasm-gc since my understanding is it won't work without it enabled, and without Safari you cut out all iPhones and a significant portion of web traffic.
s
I tried to use it to avoid writing a separate web front end to my app. I don't think Compose for web is ready for production use yet. If you just want to avoid JS, you can look into a KMP project that targets JS. You wouldn't need to worry about wasm-gc, but you'd need to deal with plenty of JS anyway. That's the path I'm currently working towards, using Kotlin wrappers and MUI.
1
g
I did try that and wrote a small site in it a few months ago, but it had some really strange bugs. You had to do some hacky workarounds to make window resizing work, and it didn't support touch drag events on mobile devices for scrolling. Next time I make a site I was going to try out Kobweb, but it would be nice to just flat port a compose app.
p
If you want to make a website and JS bothers you(same here), a great alternative is the #kobweb framework. Modifiers are not compatible with compose multiplatform but they are easy to learn.
1
o
Touch and resize got better in 1.6.0-rc01. if you want to give them another try. But still not production ready.
d
Thanks everyone for bringing up #kobweb, I am grateful.
👍 1
Believe it or not, I'm excited for the day when Compose Multiplatform for Web is a robust, production-ready solution. I don't care which framework people use, as long as it's the right tool for the job, and, echoing Garret's point here, that more people get to avoid writing JS. kodee excited
n
#doodle is another alternative that has a canvas api and apps that are 100% Kotlin. it also supports wasmJs. https://nacular.github.io/doodle/docs/introduction
👍 3