Kotlin wrapper for the React library. The major version number of this wrapper matches that of React itself.
kotlin-react
only supports the new DSL for React elements (ChildrenBuilder
, aka "no attrs"),
while kotlin-react-legacy
provides the familiar RBuilder
DSL.
See CHANGELOG.md for more details.
repositories {
mavenCentral()
}
implementation("org.jetbrains.kotlin-wrappers:kotlin-react:VERSION")
Please refer to the Kotlin React guide for how to use the Kotlin React DSL.