Is there any Kotlin wrapper for React?
# javascript
s
Is there any Kotlin wrapper for React?
s
Yes, I'm looked this. But it looks more like example than ready to use library...
b
Ah yes, it is just an example.
b
AFAIK
ts2tk
(https://github.com/Kotlin/ts2kt) is intended to do the job on a general level: Use TypeScript definitions for any library to generate Kotlin headers for it. So you shouldn’t have to write the headers for each and every library by hand. Sadly, it is currently failing for some advanced TypeScript features, and therefore also for React. The
kotlin-fullstack-sample
goes a different way: Not only are they writing the headers by hand (respective generating them inside the project) but they reimplement parts of React in Kotlin.
👍🏻 2