Переглянути джерело

give render hooks the vdom creator

Adam Shaw 5 роки тому
батько
коміт
fe5aaf3a4e
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      packages/core/src/common/render-hook.tsx

+ 1 - 1
packages/core/src/common/render-hook.tsx

@@ -260,7 +260,7 @@ function normalizeClassNames(classNames, hookProps) {
 
 
 function normalizeContent(input, hookProps) {
 function normalizeContent(input, hookProps) {
   if (typeof input === 'function') {
   if (typeof input === 'function') {
-    return input(hookProps)
+    return input(hookProps, h) // give the function the vdom-creation func
   } else {
   } else {
     return input
     return input
   }
   }