mirror of
https://github.com/jaandrle/deka-dom-el
synced 2026-01-11 08:16:29 +01:00
🐛 📺 v0.9.5-alpha (#44)
* ⚡ 📺 package (version and publint) * 🔤 docs typos * 🐛 this address / fixes #43 * ⚡ tiny el optimalization * 🔤 improve docs wording * 🔤 case-studies/products.js (AbortSignal) * 🔤 🐛 case-studies/image-gallery.js
This commit is contained in:
@@ -168,6 +168,22 @@ export function page({ pkg, info }){
|
||||
el("li", t`name - The name of the component function`),
|
||||
el("li", t`host - Indicates whether the host is "this" (for DocumentFragments) or "parentElement"`),
|
||||
),
|
||||
el("div", { className: "warning" }).append(
|
||||
el("p").append(T`
|
||||
There are edge case when the mark can be missing. For example, the (utility) components with reactive
|
||||
keys such as ${el("code", ".textContent")}, ${el("code", ".innerText")} or ${el("code", ".innerHTML")}.
|
||||
As they change the content of the host element.
|
||||
`),
|
||||
el(code, { content: `
|
||||
function Counter() {
|
||||
const count = S(0);
|
||||
return el("button",
|
||||
{ textContent: count, type: "button" },
|
||||
on("click", () => count.set(count.get() + 1)),
|
||||
);
|
||||
}
|
||||
`, language: "js" }),
|
||||
),
|
||||
|
||||
el("h4", t`Identifying reactive elements in the DOM`),
|
||||
el("p").append(T`
|
||||
|
||||
Reference in New Issue
Block a user