sky-reactivity
TypeScript icon, indicating that this package has built-in type declarations

0.4.5 • Public • Published

sky-reactivity

a reactivity system to automatically update the view when the state changes.

import { signal } from "sky-reactivity";
var box = signal(1);
box.get();
box.set(2);
import { signal, computed } from "sky-reactivity";
var box = signal(1);
var com = computed(() => box.get() * 2);
computed.get()
import { signal, batch } from "sky-reactivity";
var box = signal(1);
batch(() => {
	box.set(2);
	box.set(3);
});

Readme

Keywords

none

Package Sidebar

Install

npm i sky-reactivity

Weekly Downloads

0

Version

0.4.5

License

MIT

Unpacked Size

41.2 kB

Total Files

27

Last publish

Collaborators

  • linsk