Hi, everyone. I would to get your opinions on usin...
# react
a
Hi, everyone. I would to get your opinions on using Kotlin/JS + Kotlin React Wrappers for enterprise grade web applications. I've been using Ktor for my server-side applications and Angular for most of my frontend apps. I believe I can benefit from a multiplatform solution using Kotlin Multiplatform. I'm thinking shared dtos, interfaces, business logic, DI, etc... for fast development and consistency in codebase. I'm also aware that JetBrains uses it internally for their apps. However I'm the only developer in the team and I have about 9 months to build a in-house solution with features like project management, CRM, ERP, User Management, Knowledge Base, Grouped Chatrooms, etc. Do you guys think it's a worthwhile investment long-term? I would like to learn from your experiences and insights. Thank you in advance 🙏🏾
m
We use Kotlin/JS & wrappers for all bigger web projects. Once you know your way around it’s extremely convenient. A major advantage for example is having a single programming language for backend & frontend (Kotlin) which makes life a lot easier, especially when working on both sides at the same time 🙂 Feel free to take a look at our open source project CampusQR which uses exactly this stack
a
Thanks very much for your reply 🙏🏾 It was very helpful.
c
As a solo developer, I have a Kotlin Multiplatform app written with React in production for a bit more than a year. On Kotlin Multiplatform: if you like Ktor, it's amazing how much faster you can develop things thanks to sharing your API structures and validation functions. On Kotlin React: if you already know React, it's very easy to use. However because it must match what React expects, some syntax isn't really convenient (e.g. you must define props as an external interface). It's a small price to pay though. Another thing to keep in mind is that the React wrappers move fast and it's common that they rename a function or class, expect to have some renaming to do when upgrading the dependency. They're almost always trivial.
The project I mentioned is open source, you can check it out here: https://gitlab.com/opensavvy/formulaide It's currently ongoing a big refactor so it's a bit messy, if you have any questions on how it works you can send me a direct message or @ me in the comments of your questions.
When it comes to syntax I prefer Compose Web to React, but there are many other factors (including how new Compose is)
a
Thank you very much, @CLOVIS 🙏🏾. I really appreciate your insight. I'll take a look at the repository soon.