Skip to content
Appurist (Paul) edited this page Sep 18, 2020 · 15 revisions

Reactivator Wiki

reactivator: a framework-independent package to transform data elements into reactive ones.

This project is a very small library package that provides simple reactivity to arbitrary data elements. It is platform agnostic, however it is not intended for use in combination with other frameworks which may implement the same functionality, or have naming clashes.

JAVASCRIPT API

Several functions are available in the Reactivator API for JavaScript. See the API page for more.

Example use of Refs, Reactive Objects, and Watches

See also the example page for a source code example, as well as the resulting output.

WORK IN PROGRESS

This is an early work-in-progress, not intended for any serious purpose at this time. Furthermore, it is a 0.x release, meaning it is likely to have breaking changes as the interface is worked out in practice, and becomes more complete.

INSPIRATION

This project has been an attempt at learning how reactivity in Vue works behind the scenes, by implementing major features of it from scratch, and therefore is both inspired by Vue.js, and in many ways, is modeled after Vue. It incorporates a small portion of the Composition API features in Vue 3, although is a much simpler implementation with fewer features and less maturity. However, in spite of this, the lighter design and implementation may be appropriate for some hobby projects.