import { el } from "deka-dom-el"; import { mnemonicUl } from "../mnemonicUl.html.js"; export function mnemonic(){ return mnemonicUl().append( el("li").append( el("code", "O()"), " — observable: reactive value", ), el("li").append( el("code", "O(()=> )"), " — observable: reactive value dependent on calculation using other observables", ), el("li").append( el("code", "O.on(, [, ])"), " — listen to the observable value changes", ), el("li").append( el("code", "O.clear(...)"), " — off and clear observables", ), el("li").append( el("code", "O(, )"), " — observable: pattern to create complex reactive objects/arrays", ), el("li").append( el("code", "O.action(, , ...)"), " — invoke an action for given observable" ), el("li").append( el("code", "O.el(, )"), " — render partial dom structure (template) based on the current observable value", ) ); }