3 ms·
component: custom element wrapped in init(name, store, listOfUpdateFnPair) view: uhtml or lit-html (don't use lit-element) action: DOM event delegation for in
by Existenceblinks 4y ago
component: custom element wrapped in init(name, store, listOfUpdateFnPair)
view: uhtml or lit-html (don't use lit-element)
action: DOM event delegation for intercepting anything happens on view
model: a global store passed to when custom element is defined.
update: list of [selector, f({model, view}] pairs passed to when custom element is defined.
---
Congratulation we now have a self-contained Elm architecture.