Skip to content

Tobenna-KA/laite

Repository files navigation

Laite

Some times we want to be able to watch for changes and add reactivity in a very simple javascript app. This library aims to bring in this reactivity in a very simple API. This is a lightweight mini library bringing reactivity to any website.

Usage

import Laite from 'Laite'
const objToWatch = { obj: { arr: [] } }
const lt = new Laite(objToWatch)

lt.$watch('obj', (val) => console.log(val))

Deep watch is also available via $deepWatch

import Laite from 'Laite'
const objToWatch = { obj: { arr: [] } }
const lt = new Laite(objToWatch))

lt.$deepWatch('obj.arr', (val) => console.log(val))

About

Very lightweight mini library bringing simple reactivity to any website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published