diff --git a/kotlin-react/src/main/kotlin/react/Imports.kt b/kotlin-react/src/main/kotlin/react/Imports.kt index 5284ec0c9c40..313d5b89e2b8 100644 --- a/kotlin-react/src/main/kotlin/react/Imports.kt +++ b/kotlin-react/src/main/kotlin/react/Imports.kt @@ -82,7 +82,9 @@ external fun
memo(fc: FunctionalComponent
): FunctionalComponent< external fun
memo(fc: FunctionalComponent
, areEqual: (P, P) -> Boolean): FunctionalComponent
// Lazy (16.6+) -external fun
lazy(loadComponent: () -> Promise
+external fun lazy(
+ factory: () -> Promise
// Suspense (16.6+)
external interface SuspenseProps : RProps
diff --git a/kotlin-react/src/main/kotlin/react/ReactComponent.kt b/kotlin-react/src/main/kotlin/react/ReactComponent.kt
index b764e235c12f..85a48f13e6d8 100644
--- a/kotlin-react/src/main/kotlin/react/ReactComponent.kt
+++ b/kotlin-react/src/main/kotlin/react/ReactComponent.kt
@@ -40,6 +40,10 @@ val RErrorInfo.componentStack: Any
// TODO: Should extend RComponentClassStatics, but has problems with generic params
external interface RClass
+}
+
external interface RComponentClassStatics ?> {
var displayName: String?