Every help is welcome!
This file is WIP so bare with me.
This has multiple reasons:
-
Union types
Javascript offers union types. A feature that Kotlin does not have. Dukat overcomes this by using the hacky keyworddynamic. Which basically tells Kotlin to accept everything. Since this is designed to be a library, I want to be as type safe as possible. Therefore I rather rebuild components in Kotlin. -
I want to make the most out of using Kotlin
Converting an existing library to Kotlin might be a good starting point - don't get me wrong there. But I think: Designing the usage of the components in Kotlin from the beginning, frees me from being influenced by the converted and suboptimal usage.
This library is supposed to be easy to use. When building a component I start with designing the usage first. How would I like to use this component? And then from there I build up the actual component.
So far I am learning React through building this library. If you see something, which could be solved better using some advanced React features: A PR is always welcome!