@fishx/observable
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@fishx/observable

Installation

yarn add @fishx/observable

Quick Start

import { observable, observe } from '@fishx/observable'

const store = observable({
  count: 1,
  increment() {
    store.count++
  },
})

observe(() => {
  console.log(store.count)
})

store.increment() // 2
store.increment() // 3

Readme

Keywords

none

Package Sidebar

Install

npm i @fishx/observable

Weekly Downloads

3

Version

1.0.1

License

none

Unpacked Size

21.2 kB

Total Files

18

Last publish

Collaborators

  • whalecloud-developer