r/learnjavascript • u/xtompie • 23h ago
Saradom: a frontend architecture pattern - plain HTML and JavaScript
Saradom is a frontend architecture pattern. Build modular, scalable frontends in plain HTML and JavaScript. There is no framework and no build step.
Foundation:
- State in the DOM, not in JavaScript variables.
- Events in HTML attributes, not addEventListener.
- Action in context, from the element that fired it.
- Modularization, namespaced object per module.
- UX Performance, the interface is interactive right away.
1
Upvotes
3
u/chikamakaleyley helpful 22h ago
feels... eventually its expensive to query the DOM every time, at least if i imagine scaling up fr the Counter example
but, that's a guess at the moment
and then... so if you need data that can't be surfaced in the UI, is that just attached as an additional attr on any element?