do you feel like it’s worth to write a react app i...
# react
w
do you feel like it’s worth to write a react app in kotlin or is it too hard to use third-party npm-packages? I have a shared module in kotlin/js and I don’t know if I should add it as dependency to a react-typescript project or go with full kotlin
👀 1
b
Dukat is pretty reliable these days so generating kotlin bindings for npm libs is pretty seampless
I believe newest gradle plugin does that automatically for you. Give it a go
👍 1
w
i didnt know dukat, thanks! I’ll give it a try then 🙂
c
I have tried using Dukat a number of times and it has yet to generate anything that helped me. I've always ended up having to write all the bindings by hand. 3rd party js interop has been brutal. I would very much like to hear how this goes for other people.
👍 1
b
@chadmorrow, i had the same experience with it in the past myself, but dukat has improved significantly recently and its integration with gradle plugin ease things up a lot
But even in the past I've found dukat useful in generating baseline bindings which I've just adjusted where needed myself
👍 1
Its main issue was union types, which can be manually solved by replacing them with dynamic
Anyways, try for yoyrself and see how you like it
👍 1
c
Union types were definitely the worst part of the experience. Its been a couple months since I last used Dukat though so I'll have to see how it plays in its gradle plugin form