diff --git a/kotlin-react/src/main/kotlin/react/Imports.kt b/kotlin-react/src/main/kotlin/react/Imports.kt index 28b27a3f4dcc1..b5c0bee3fb13e 100644 --- a/kotlin-react/src/main/kotlin/react/Imports.kt +++ b/kotlin-react/src/main/kotlin/react/Imports.kt @@ -125,7 +125,7 @@ external fun rawUseLayoutEffect(effect: () -> dynamic) external fun useContext(context: RContext): T // Callback Hook (16.8+) -external fun useCallback(callback: () -> Unit, dependencies: RDependenciesArray): () -> Unit +external fun > useCallback(callback: T, dependencies: RDependenciesArray): T // Memo Hook (16.8+) external fun useMemo(callback: () -> T, dependencies: RDependenciesArray): T