igor.wojda
12/15/2020, 8:15 PMReact + Kotlin
vs React + JS/TS
?
2. Is it worth a hustle to use React + Kotlin
only because I like Kotlin
?
3. How mature it is in terms of tools and external libraries compatibility?
4. What are the main disadvantages currently?Marc Knaup
12/15/2020, 8:32 PMandylamax
12/15/2020, 9:19 PMReact+TS
10/10
• React+JS
9/10
• React+KT
7/10
2. YES, YES, YES it is
3. Though experimentally, it is very mature. Caveat is that some react libs require a bit of work to be defined for use with Kotlin+React
4. Bundle size and build time, and as @Marc Knaup pointed out. Intergration of external libs is work
Additions
1. Using react in kotlin is ideal, but using code generated from kotlin to react is a bit hectic
2. libraries like ktor-client, serialization and coroutines will shoot the bundle size up
3. Using react hooks is still a bit verbose. But I am sure there is a compiler plugin in works to solve this issue
Overall (Personal Opinion):
If all you are looking to target is just web, then I suggest use TS for now, while ReaKT is still in the works. But if you intend to share code across Backend and frontend or accross web and mobile. It is totally worth the effortMarc Knaup
12/15/2020, 9:21 PMMarc Knaup
12/15/2020, 9:28 PMchristophsturm
12/15/2020, 9:28 PMchristophsturm
12/15/2020, 9:30 PMMarc Knaup
12/15/2020, 9:30 PMchristophsturm
12/15/2020, 9:32 PMMarc Knaup
12/15/2020, 9:33 PMMarc Knaup
12/15/2020, 9:33 PMchristophsturm
12/15/2020, 9:33 PMchristophsturm
12/15/2020, 9:35 PMchristophsturm
12/15/2020, 9:36 PM