npm.io
1.0.5 • Published 2 years ago

ixstore

Licence
MIT
Version
1.0.5
Deps
1
Size
5 kB
Vulns
0
Weekly
0
Stars
3

license version size

lucide rocket ixstore

simple state management

lucide code usage

import ixstore from "ixstore";

const store = ixstore({
  hello: "world",
});

const unsub = store.sub((value) => {
  console.log(value);
});

store.get().hello; // world

store.set({ hello: "ixstore" });

// { hello: "ixstore" }

store.get().hello; // ixstore

unsub();

lucide scale license

MIT