1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-01 04:12:14 +02:00

♻️ Refactore, add abort option

This commit is contained in:
2023-08-26 12:20:01 +02:00
parent 7f1506781f
commit a36786042b
6 changed files with 54 additions and 25 deletions

View File

@ -1,11 +1,9 @@
import { S, empty, watch, el, namespace, assign, on, dispatch } from "../index.js";
Object.assign(globalThis, { S, watch, el, namespace, assign, on, dispatch });
import { S, el, on, off } from "../index.js";
//import { empty, namespace, on, dispatch } from "../index.js";
Object.assign(globalThis, { S, el, on, off });
const style= createStyle();
const app= el(todosComponent);
dispatch("change", "Peter")(app);
console.log(app, app instanceof HTMLDivElement);
document.head.append(style.element);
document.body.append(app);