Reactive-lite

Simplified yet powerful reactive component

View project on GitHub

Design Philosophy

Reactive-lite is aimed to be a simplified reactive functionality only library, with flexible binding styles and speed fast.

In order to keep reactive simple, it works on opinionated model emitter, your model have to emit change prop event on change and the event have to be accepted by on and removed by off method, one example is component-model

For more detail of the opinionated model, check out how it works

Basic Features

  • Bind model properties in three ways, including interpolation with filter(s), data-render and custom binding.

  • Binding events to the delegate Object, get the corresponding model and element in arguments, see events

  • Reusable bindings and filters can be defined globally or single instance.

  • Easily selected/checked binding for checkbox(es) and select element, see checked and selected.

  • Reusable config can make high level component(like list) render extremely fast, explanation

Next: Use text interpolation

Demo

Here is some basic demo