We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a2f35b commit 6327fd3Copy full SHA for 6327fd3
packages/rdom/src/dom.ts
@@ -34,6 +34,7 @@ import { isComment, isComponent } from "./checks.js";
34
* - `[COMMENT, "foo", "bar"...]` (DOM comment node)
35
* - `[IComponent, ...mountargs]`
36
* - `[function, ...args]`
37
+ * - `["tag", {...attribs}, noArgFunction, "other"]`
38
* - ES6 iterable of the above (for child values only!)
39
*
40
* Any other values will be cast to strings and added as spans to current
@@ -59,6 +60,8 @@ export const $tree = async (
59
60
? tree.mount(parent, idx)
61
: isDeref(tree)
62
? $tree(tree.deref(), parent)
63
+ : isFunction(tree)
64
+ ? $tree(tree(), parent, idx)
65
: isNotStringAndIterable(tree)
66
? $treeIter(tree, parent)
67
: tree != null
0 commit comments