1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2024-11-24 01:29:36 +01:00
deka-dom-el/docs/components/examples/elements/dekaCreateElement.js

12 lines
287 B
JavaScript
Raw Permalink Normal View History

import { el, assign } from "deka-dom-el";
2023-11-06 13:45:43 +01:00
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 } }
)
);