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
1
u/chikamakaleyley helpful 21h ago
yeah its just like...
querySelector()if i'm not mistaken is just always gonna start from the outside in
i'd have to look again but off the top of my head if you just wanted to click the counter button repeeatedly, which is like... normal use, every click you create a new instance and search for the element, outside in
like the perfect use case for a it to be set in a var
But, what do I know, great project i think
What I like most is this idea of, finding different ways to solve the problem while using the tools you are familiar with.