Skip to content

hex13/ampel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ampel.js - reactive library for signals

Signal

import { Signal, get, set, on } from 'ampel';
const a = new Signal(10);
on(a, v => {
	console.log("value = ", v);
})
set(a, 123);
set(a, 456);
console.log(get(a));

State (proxied reactive object)

import { State, on } from 'ampel';
const a = State({
	x: 10, y: 20,
});

on(a, v => {
	console.log("value = ", v);
});

a.x = 11;
a.y = 25;

About

Ampel - reactive library for signals

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published