Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Shuanghui Yan committed 2022-02-24 18:08:21 +08:00
commit 2a6e6371e7
18 files changed
+780 -37

No files matched your search

-2
View File
@@ -53,14 +53,12 @@ export class Interpreter {
}
}
CreateTextNode(text, root) {
// todo: make it so the types are okay
const node = document.createTextNode(text);
this.nodes[root] = node;
this.stack.push(node);
}
CreateElement(tag, root) {
const el = document.createElement(tag);
// el.setAttribute("data-dioxus-id", `${root}`);
this.nodes[root] = el;
this.stack.push(el);
}