init state, fix examples
This commit is contained in:
parent
5265697cb2
commit
5ec06e7c08
9 changed files with 137 additions and 20 deletions
|
|
@ -63,6 +63,7 @@ function hyperscript(selector) {
|
|||
}
|
||||
|
||||
if (typeof selector === "string") return selectorCache[selector](attrs || {}, Node.normalizeChildren(children))
|
||||
|
||||
return Node(selector, attrs && attrs.key, attrs || {}, Node.normalizeChildren(children), undefined, undefined)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue