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