Skip to content

Latest commit

 

History

History

davey-store

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

👦🏻 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 })