Mador:
- is a very mini reactive DOM runtime.
- is for group who don't request aliases want a framework.
It gives you reactive authorities and a measurement to hindrance that authorities to existing DOM.
Mador is simply a autochthonal ES module and tin beryllium utilized done npm aliases straight from a CDN.
And that's fundamentally all.
There are nary components, templates aliases virtual DOM. Mador useful pinch the DOM you already have.
A binding consists of 3 things:
selector selects the elements to update.
update receives each constituent and the worth returned by read.
read selects the authorities the binding depends on.
Mador tracks the properties publication by the binding and only reruns it erstwhile those limitations change.
State is changed done w:
Writes are batched, truthful aggregate changes made successful the aforesaid constitute are processed together.
'Bindings' are associated pinch the DOM they update.
When the matching elements are gone, Mador tin region the corresponding reactive runner.
There is nary constituent lifecycle to manage.
Sometimes a page doesn't request a framework.
It already has HTML & Javascript, but is conscionable needs a small reactivity.
Mador is made to do that.
Mador is intentionally small.
The runtime is presently astir 855 bytes minified.
Mador is distributed arsenic an ES module.
No world runtime and nary build measurement is required.
MIT