Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 681 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 681 Bytes

👦🏻 davey-store

davey's store interpretation

CircleCI codecov npm (scoped)

Methods

createStore

Create new store with subscribe, get and set methods.

Try it out

yarn add davey-store

import { createStore } from "davey-store";

const store = createStore({ active: false });
store.subscribe(data => console.log(data));
console.log(store.get())
store.set({ active: true })