I tried every configuration that you can find on S...
# javascript
t
I tried every configuration that you can find on Slack and none of them is working for me. Do you have a starter kit for a simple project using React Wrappers and DCE?
a
The problem is that js plugin is being rewritten at the moment. You can use samples for old kotlin2js plugin, but new one do not have proper documentation at the moment.
t
Oh, okay, well it’s still a good and bad news. I will just wait then. Thank you.
a
You can use kotlin2js. It is perfectly fine for pure is projects
I mean non-multiplatform
t
I will wait for proper documentation as I am not comfortable with the ecosystem yet.
👍 1
b
Also you can use kotlin multiplatform with kotlin-frontend plugin
There's plenty of examples for that
a
Dce does not work for mpp yet. And I am not sure about js plugin as well
b
It does with multiplatform and kotlin-frontend combo
a
I believe frontend plugin is part of old kotlin2js toolchain and being deprecated at the moment. But yeah, it is still working.
b
That's true
t
Thanks @Big Chungus , it looks interesting. Still, it is so heavy to configure...
b
Aggreed. New js plugin is aiming to solve that with smoother integration with existing gradle features. However that's still in progress.
j
you can use this as "example" on how to use react wrapper with new JS plugin https://github.com/steelxtreme/KotlinBrowserTest