@vasta/rx
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

vastarx

A zero dependency, simple reactive state

Install

npm install @vasta/rx

Usage

import { VastaRX } from '@vasta/rx';

const id = VastaRX.getState('key', (value) => {
	console.log('Updated value:', value)
})

const newValue = 1
VastaRX.setState('key', newValue)

VastaRX.unListen(id)

Readme

Keywords

Package Sidebar

Install

npm i @vasta/rx

Weekly Downloads

1

Version

1.0.8

License

Apache-2.0

Unpacked Size

15.6 kB

Total Files

8

Last publish

Collaborators

  • bguimaraes7