mico-store
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

nano-store

type size
min.js 1kb
gzip 300b

Install

$ npm install --save mico-store

Use

import micoStore from 'mico-store';

const store = micoStore({
  name: 'dog',
  age: 5,
});

const unListen = store.listen(state => {
  console.log(state); // {name:'cat', age: 5}
});

store.setState({
  name: 'cat',
});

Readme

Keywords

none

Package Sidebar

Install

npm i mico-store

Weekly Downloads

1

Version

1.0.2

License

none

Unpacked Size

22.6 kB

Total Files

10

Last publish

Collaborators

  • ymblender