Hi! Using Kotlin 1.4 and IR? Want to try a compile...
# react
b
Hi! Using Kotlin 1.4 and IR? Want to try a compiler plugin that removes all the functional component boilerplate? Yes? Awesome! https://github.com/bnorm/kotlin-react-function Working on getting it published for wider consumption but for right now you can clone the project, import the
sample
directory, and mess around if you would like to try it out. Feel free to open issues with suggestions and any problems you find!
👍 5
a
Nice work bruh. Such an important tool. This is so important for kotlin-react and I would humbly request it to be merged into
kotlin-react
wrapper. @Sebastian Aigner
b
I would be willing to contribute this plugin to the official Kotlin wrappers project but I'm not sure I see the benefit; yet. The IR backend is still a preview feature so I'm not sure they would want to recommend and support something like this.
a
They are working so hard to make kotlin concise and less verbose. I am sure this fits well in the kotlin values as a language. P.S since they are working on the IR backend as well, they would also need to support this. It is a more of a want than a need in the
kotlin-react
stack