mirror of
https://github.com/jaandrle/deka-dom-el
synced 2024-11-22 07:49:38 +01:00
12 lines
287 B
JavaScript
12 lines
287 B
JavaScript
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 } }
|
|
)
|
|
);
|