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

1.1.5 • Public • Published

nice-store

npm version npm downloads

homepage

https://frontlich.github.io/nice-store/#/

usage

install

npm install nice-store

createCoreStore

import { createCoreStore } from "nice-store";

const store = createCoreStore(0);

store.subscribe(console.log);

store.setState(1); // will log 1
store.getState(); // 1

createStore

import { createStore } from "nice-store";

create enhanced store with initialState and enhancers

createStore(initialState, ...enhancers);

internal enhancers:

other enhancers:

Dependencies (2)

Dev Dependencies (24)

Package Sidebar

Install

npm i nice-store

Weekly Downloads

33

Version

1.1.5

License

MIT

Unpacked Size

215 kB

Total Files

57

Last publish

Collaborators

  • frontlich