How it works
Bind an expression to your model. rs-x builds dependencies and re-evaluates on identifier changes.
See how it worksDeclarative reactivity for runtime-bound expressions. Bind an expression to a model and rs-x tracks fine-grained dependencies automatically.
Bind an expression to your model. rs-x builds dependencies and re-evaluates on identifier changes.
See how it worksLearn the engine, binding, change propagation, and debugging tools.
Read the DocsTry expressions live and see updates as your model changes, with expression tree visualization.
Open PlaygroundBind expressions to a model and rs-x builds a fine-grained dependency graph. Only identifiers read by the expression become reactive.
Your model is just normal JavaScript.
{ price: 100, quantity: 2 }Expressions are declarative strings. Binding registers dependencies for what the expression reads.
rsx('price * quantity')(model)When the model changes, the expression updates and emits changes.
expression.changed.subscribe(() => { /* … */ })