anyone got any experience using kotlin with react?
a
apomelov
03/27/2017, 6:12 AM
I tried, there were problems to create a header file using ts2kt utility. I asked about this couple weeks ago in this channel. Current status is that ts2kt is still not ideal and can’t convert all typescript definitions. JetBrains use react with kotlin, but as far as I understand they write headers manually.
I even created a task for providing some kind of tutorial on developing full stack app with kotlin and react: https://youtrack.jetbrains.com/issue/KT-16733
You can vote and watch it 🙂
b
bulwinkel
03/27/2017, 8:05 AM
voted and watched! thanks Alexey 🙂
a
apomelov
03/27/2017, 9:17 AM
Unfortunately not sure that ts2kt will be able to convert all ts code in nearest future… There was an opinion, that there shouldn’t be a full feature converter but a new kotlin oriented framework. I’m not agree with it, I’m afraid it can repeat GWT’s story. Infrastructure must be able to interact with existing frameworks to get wide audience.
It would be strange if we say, don’t use spring with kotlin, here is a kotlin specific DI container. So kotlin can just interoperate with any java frameworks. I think frontend technologies should go the same way.
c
Chris Miller
03/27/2017, 2:30 PM
Note that Andrey Breslav did a demo showing Kotlin + React last week.
The demo is here: