mirror of
https://github.com/jaandrle/deka-dom-el
synced 2026-11-16 17:10:13 +01:00
🔤 updated docs (examples)
This commit is contained in:
3 files changed
+15
-12
No files matched your search
@@ -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; }")
|
||||
|
||||
Reference in new issue
Block a user