1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-09-11 03:11:56 +02:00

🔤 updated docs (examples)

This commit is contained in:
2024-12-11 16:20:49 +01:00
parent 513c32eb37
commit bcddc75f56
3 changed files with 15 additions and 12 deletions

View File

@@ -4,7 +4,7 @@ const count= S(0);
import { el } from "deka-dom-el";
document.body.append(
el("p", S(()=> "Currently: "+count())),
el("p", { classList: { red: S(()=> count()%2) }, dataset: { count }, textContent: "Attributes example" })
el("p", { classList: { red: S(()=> count()%2 === 0) }, dataset: { count }, textContent: "Attributes example" })
);
document.head.append(
el("style", ".red { color: red; }")