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