diff --git a/kotlin-react/src/main/kotlin/react/Imports.kt b/kotlin-react/src/main/kotlin/react/Imports.kt index 5284ec0c9c404..313d5b89e2b87 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 b764e235c12f0..85a48f13e6d86 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?