🎉 docs/p05-scopes

This commit is contained in:
jaandrle committed 2023-11-30 17:05:19 +01:00
1 parent 01f102c149
commit fb14d51cb4
13 files changed
+240 -16

No files matched your search

@@ -0,0 +1,16 @@
import { el } from "deka-dom-el";
import { mnemonicUl } from "../mnemonicUl.html.js";
export function mnemonic(){
return mnemonicUl().append(
el("li").append(
el("code", "el(<function>, <function-argument(s)>)[.append(...)]: <element-returned-by-function>"), " — using component represented by function",
),
el("li").append(
el("code", "scope.host()"), " — get current component reference"
),
el("li").append(
el("code", "scope.host(...<addons>)"), " — use addons to current component",
)
);
}