mirror of
https://github.com/jaandrle/deka-dom-el
synced 2025-04-03 04:25:53 +02:00
8 lines
183 B
JavaScript
8 lines
183 B
JavaScript
import { el, on } from "deka-dom-el";
|
|
|
|
// Using events as addons - chainable approach
|
|
el("button", {
|
|
textContent: "click me",
|
|
},
|
|
on("click", (e) => console.log("Clicked!", e))
|
|
); |