在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):JetBrains/kotlin-wrappers开源软件地址(OpenSource Url):https://github.com/JetBrains/kotlin-wrappers开源编程语言(OpenSource Language):Kotlin 100.0%开源软件介绍(OpenSource Introduction):Kotlin WrappersThis repository hosts a number of Kotlin wrappers for popular JavaScript libraries. To learn more please refer to the Artifacts are published to Maven Central, see the corresponding README files for package coordinates. All packages require JDK 8 to be installed. Using In Your ProjectsUse the "Kotlin Wrappers BOM" which helps to ensure consistency between the modules and allows you not to think about version compatibility. Just declare val kotlinWrappersVersion = "1.0.0-pre.351"
dependencies {
implementation(enforcedPlatform("org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom:$kotlinWrappersVersion"))
implementation("org.jetbrains.kotlin-wrappers:kotlin-emotion")
implementation("org.jetbrains.kotlin-wrappers:kotlin-react")
implementation("org.jetbrains.kotlin-wrappers:kotlin-react-dom")
implementation("org.jetbrains.kotlin-wrappers:kotlin-react-table")
// other wrappers
} Or use a helper function: fun kotlinw(target: String): String =
"org.jetbrains.kotlin-wrappers:kotlin-$target"
val kotlinWrappersVersion = "1.0.0-pre.351"
dependencies {
implementation(enforcedPlatform(kotlinw("wrappers-bom:$kotlinWrappersVersion")))
implementation(kotlinw("emotion"))
implementation(kotlinw("react"))
implementation(kotlinw("react-dom"))
implementation(kotlinw("react-table"))
// other wrappers
} Make sure that you have Examples
Follow these examples to learn how to start developing your React apps with Kotlin. Good luck and have fun! You also can clone my-kotlin-react-sample to see the result directly. Experimental IR BackendPlease note that React wrappers in particular heavily relied on specific characteristics of the default backend, which might make your current code incompatible with the new IR backend. React error: "X not a function" in production mode
ContributingContributions to this project are welcome! Please see the open issues or chat with us on the #react channel in our Slack. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论