mirror of
https://github.com/jaandrle/deka-dom-el
synced 2025-07-01 20:32:13 +02:00
⚡ Docs
This commit is contained in:
11
docs/components/examples/elements/dekaCreateElement.js
Normal file
11
docs/components/examples/elements/dekaCreateElement.js
Normal file
@ -0,0 +1,11 @@
|
||||
import { el, assign } from "deka-dom-el";
|
||||
const color= "lightcoral";
|
||||
document.body.append(
|
||||
el("p", { textContent: "Hello (first time)", style: { color } })
|
||||
);
|
||||
document.body.append(
|
||||
assign(
|
||||
document.createElement("p"),
|
||||
{ textContent: "Hello (second time)", style: { color } }
|
||||
)
|
||||
);
|
Reference in New Issue
Block a user